nvim/pack/acp/opt/nvim-lspconfig/lua/lspconfig/server_configurations/prismals.lua

32 lines
670 B
Lua
Raw Normal View History

2022-01-10 11:08:46 +00:00
local util = require 'lspconfig.util'
local bin_name = 'prisma-language-server'
local cmd = { bin_name, '--stdio' }
if vim.fn.has 'win32' == 1 then
cmd = { 'cmd.exe', '/C', bin_name, '--stdio' }
end
return {
default_config = {
cmd = cmd,
filetypes = { 'prisma' },
settings = {
prisma = {
prismaFmtBinPath = '',
},
},
root_dir = util.root_pattern('.git', 'package.json'),
},
docs = {
description = [[
npm install -g @prisma/language-server
'prismals, a language server for the prisma javascript and typescript orm'
]],
default_config = {
root_dir = [[root_pattern(".git", "package.json")]],
},
},
}