diff options
| author | DrummyFloyd <jonathan.monnet28@gmail.com> | 2023-04-13 12:38:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-13 18:38:39 +0800 |
| commit | d28f74356d8d6fb668acbee9d6c3fb60fa2337ad (patch) | |
| tree | 085b73c21485b1638893f1cd06b534b85bd3e899 /lua | |
| parent | fix(eslint): get root patterns by given path (#2556) (diff) | |
| download | nvim-lspconfig-d28f74356d8d6fb668acbee9d6c3fb60fa2337ad.tar nvim-lspconfig-d28f74356d8d6fb668acbee9d6c3fb60fa2337ad.tar.gz nvim-lspconfig-d28f74356d8d6fb668acbee9d6c3fb60fa2337ad.tar.bz2 nvim-lspconfig-d28f74356d8d6fb668acbee9d6c3fb60fa2337ad.tar.lz nvim-lspconfig-d28f74356d8d6fb668acbee9d6c3fb60fa2337ad.tar.xz nvim-lspconfig-d28f74356d8d6fb668acbee9d6c3fb60fa2337ad.tar.zst nvim-lspconfig-d28f74356d8d6fb668acbee9d6c3fb60fa2337ad.zip | |
feat: add helm_ls support (#2558)
* feat: helm_ls support
Signed-off-by: DrummyFloyd <drummy@gmail.com>
* fix: description
Signed-off-by: DrummyFloyd <drummy@gmail.com>
---------
Signed-off-by: DrummyFloyd <drummy@gmail.com>
Co-authored-by: DrummyFloyd <drummy@gmail.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/helm_ls.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/helm_ls.lua b/lua/lspconfig/server_configurations/helm_ls.lua new file mode 100644 index 00000000..c9adb115 --- /dev/null +++ b/lua/lspconfig/server_configurations/helm_ls.lua @@ -0,0 +1,33 @@ +local util = require 'lspconfig.util' + +local bin_name = 'helm_ls' +local cmd = { bin_name } + +if vim.fn.has 'win32' == 1 then + cmd = { 'cmd.exe', '/C', bin_name } +end + +return { + default_config = { + cmd = { cmd, 'serve' }, + filetypes = { 'helm' }, + root_dir = util.root_pattern 'Chart.yaml', + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/mrjosh/helm-ls + +Helm Language server. (This LSP is in early development) + +`helm Language server` can be installed by following the instructions [here](https://github.com/mrjosh/helm-ls). + +The default `cmd` assumes that the `helm_ls` binary can be found in `$PATH`. + +If need Helm file highlight use [vim-helm](https://github.com/towolf/vim-helm) plugin. +]], + default_config = { + root_dir = [[root_pattern("Chart.yaml)]], + }, + }, +} |
