diff options
| author | Turiiya <34311583+tobealive@users.noreply.github.com> | 2023-07-20 07:58:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-20 13:58:00 +0800 |
| commit | e7be6d4ead7b9703aecacb0dc8882ff42533ecb2 (patch) | |
| tree | ed51ee74de061f9dd47f228feee3eb18d00c7055 /lua | |
| parent | fix(LspRestart): check client attched_buffers count by using tbl_count (#2725) (diff) | |
| download | nvim-lspconfig-e7be6d4ead7b9703aecacb0dc8882ff42533ecb2.tar nvim-lspconfig-e7be6d4ead7b9703aecacb0dc8882ff42533ecb2.tar.gz nvim-lspconfig-e7be6d4ead7b9703aecacb0dc8882ff42533ecb2.tar.bz2 nvim-lspconfig-e7be6d4ead7b9703aecacb0dc8882ff42533ecb2.tar.lz nvim-lspconfig-e7be6d4ead7b9703aecacb0dc8882ff42533ecb2.tar.xz nvim-lspconfig-e7be6d4ead7b9703aecacb0dc8882ff42533ecb2.tar.zst nvim-lspconfig-e7be6d4ead7b9703aecacb0dc8882ff42533ecb2.zip | |
feat(v): add `v-analyzer` (#2726)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/v_analyzer.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/v_analyzer.lua b/lua/lspconfig/server_configurations/v_analyzer.lua new file mode 100644 index 00000000..d3892593 --- /dev/null +++ b/lua/lspconfig/server_configurations/v_analyzer.lua @@ -0,0 +1,21 @@ +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")]], + }, + }, +} |
