2022-03-20 10:22:32 +08:00
|
|
|
local util = require 'lspconfig.util'
|
2021-10-05 15:13:10 +08:00
|
|
|
|
2022-03-20 10:22:32 +08:00
|
|
|
return {
|
2021-10-05 15:13:10 +08:00
|
|
|
default_config = {
|
2022-06-21 14:24:21 +08:00
|
|
|
cmd = { 'vls' },
|
2021-10-05 15:13:10 +08:00
|
|
|
filetypes = { 'vlang' },
|
|
|
|
root_dir = util.root_pattern('v.mod', '.git'),
|
|
|
|
},
|
|
|
|
docs = {
|
|
|
|
description = [[
|
|
|
|
https://github.com/vlang/vls
|
|
|
|
|
|
|
|
V language server.
|
|
|
|
|
|
|
|
`v-language-server` can be installed by following the instructions [here](https://github.com/vlang/vls#installation).
|
|
|
|
```
|
|
|
|
]],
|
|
|
|
default_config = {
|
|
|
|
root_dir = [[root_pattern("v.mod", ".git")]],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|