1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-11 02:15:48 +08:00
SpaceVim/bundle/nvim-lspconfig-latest/lua/lspconfig/server_configurations/v_analyzer.lua

22 lines
501 B
Lua
Raw Normal View History

local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'v-analyzer' },
filetypes = { 'v', 'vsh', 'vv' },
root_dir = util.root_pattern('v.mod', '.git'),
},
docs = {
description = [[
https://github.com/v-analyzer/v-analyzer
V language server.
`v-analyzer` can be installed by following the instructions [here](https://github.com/v-analyzer/v-analyzer#installation).
]],
default_config = {
root_dir = [[root_pattern("v.mod", ".git")]],
},
},
}