mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 16:00:07 +08:00
32 lines
727 B
Lua
32 lines
727 B
Lua
|
local configs = require 'lspconfig/configs'
|
||
|
local util = require 'lspconfig/util'
|
||
|
|
||
|
local server_name = 'prismals'
|
||
|
local bin_name = 'prisma-language-server'
|
||
|
if vim.fn.has 'win32' == 1 then
|
||
|
bin_name = bin_name .. '.cmd'
|
||
|
end
|
||
|
|
||
|
configs[server_name] = {
|
||
|
default_config = {
|
||
|
cmd = { bin_name, '--stdio' },
|
||
|
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")]],
|
||
|
},
|
||
|
},
|
||
|
}
|