Coc extension that implements Prisma Language Server. Use it alongside with the Prisma syntax plugin: https://github.com/pantharshit00/vim-prisma
:CocInstall coc-prisma
coc-prisma.restartLanguageServer
: Restarts the Prisma Language Server
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"
]
}
MIT
This extension is created by create-coc-extension