mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 19:50:04 +08:00
30 lines
613 B
Lua
30 lines
613 B
Lua
|
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
|
||
|
```
|
||
|
]],
|
||
|
},
|
||
|
}
|