You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many Neovim users now rely on the builtin LSP rather than '3rd party' providers like CoC. Currently there is no way (that I know of) to integrate the format functionality into the Neovim LSP.
I think it would be beneficial to many Neovim users to get a separate binary for prisma-fmt that could hook into the prisma language server. Currently the only solution to get nicely formatted schema files is to open VSCode and format there, which is not ideal.
The text was updated successfully, but these errors were encountered:
@benediktms, I've been using the mhartington/formatter.nvim plugin for formatting in neovim, and wanted to share that I was able to setup formatting prisma schemas with the following config:
return {
"mhartington/formatter.nvim",
config=function()
require("formatter").setup({
filetype= {
prisma= {
function()
vim.lsp.buf.format()
end
},
-- setup other languages here
},
})
vim.cmd([[ augroup FormatAutogroup autocmd! autocmd BufWritePost * FormatWrite augroup END]])
end,
}
Follow up from prisma/prisma#19360 (reply in thread)
Many Neovim users now rely on the builtin LSP rather than '3rd party' providers like CoC. Currently there is no way (that I know of) to integrate the format functionality into the Neovim LSP.
I think it would be beneficial to many Neovim users to get a separate binary for prisma-fmt that could hook into the prisma language server. Currently the only solution to get nicely formatted schema files is to open VSCode and format there, which is not ideal.
The text was updated successfully, but these errors were encountered: