1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 19:50:04 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/dotls.lua

30 lines
613 B
Lua
Raw Normal View History

2021-10-05 15:13:10 +08:00
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
local server_name = 'dotls'
local bin_name = 'dot-language-server'
local root_files = {
'.git',
}
configs[server_name] = {
default_config = {
cmd = { bin_name, '--stdio' },
filetypes = { 'dot' },
root_dir = function(fname)
return util.root_pattern(unpack(root_files))(fname) or util.path.dirname(fname)
end,
},
docs = {
description = [[
https://github.com/nikeee/dot-language-server
`dot-language-server` can be installed via `npm`:
```sh
npm install -g dot-language-server
```
]],
},
}