nvim/pack/acp/start/nvim-lspconfig/lua/lspconfig/server_configurations/vls.lua

22 lines
477 B
Lua
Raw Normal View History

2024-04-06 13:39:53 +00:00
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'v', 'ls' },
filetypes = { 'v', '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")]],
},
},
}