/coc-prisma

CoC extension that implements the Prisma language server

Primary LanguageTypeScriptMIT LicenseMIT

coc-prisma

Coc extension that implements Prisma Language Server. Use it alongside with the Prisma syntax plugin: https://github.com/pantharshit00/vim-prisma

Install

:CocInstall coc-prisma

Screenshots

image

image

Commands

coc-prisma.restartLanguageServer: Restarts the Prisma Language Server

Formatting

This extension supports formatting of Prisma files. Under the hood, the language server runs the prisma-fmt binary and it produces the formatted output.

In order to format your file, you can :Format which is provided by CoC. If you want to enable autoformatting on save, add prisma under the coc.preferences.formatOnSaveFiletypes key in coc-settings.json file. You can typically find your coc-settings.json located at ~/.config/nvim/coc-settings.json

{
  "coc.preferences.formatOnSaveFiletypes": [
    "prisma"
  ]
}

License

MIT


This extension is created by create-coc-extension