1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 14:00:06 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/server_configurations/prismals.lua

30 lines
636 B
Lua
Raw Normal View History

local util = require 'lspconfig.util'
2021-10-05 15:13:10 +08:00
local bin_name = 'prisma-language-server'
if vim.fn.has 'win32' == 1 then
bin_name = bin_name .. '.cmd'
2021-10-05 15:13:10 +08:00
end
return {
2021-10-05 15:13:10 +08:00
default_config = {
cmd = { bin_name, '--stdio' },
2021-10-05 15:13:10 +08:00
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'
2021-10-05 15:13:10 +08:00
]],
default_config = {
root_dir = [[root_pattern(".git", "package.json")]],
},
},
}