diff options
| author | valentin <36446499+qvalentin@users.noreply.github.com> | 2024-01-31 01:10:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-30 16:10:03 -0800 |
| commit | 186187978b6798b34c68229c89445b8cfef44eea (patch) | |
| tree | 9fcd43c1576ade093e644881ff92c75fbd97243e /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-186187978b6798b34c68229c89445b8cfef44eea.tar nvim-lspconfig-186187978b6798b34c68229c89445b8cfef44eea.tar.gz nvim-lspconfig-186187978b6798b34c68229c89445b8cfef44eea.tar.bz2 nvim-lspconfig-186187978b6798b34c68229c89445b8cfef44eea.tar.lz nvim-lspconfig-186187978b6798b34c68229c89445b8cfef44eea.tar.xz nvim-lspconfig-186187978b6798b34c68229c89445b8cfef44eea.tar.zst nvim-lspconfig-186187978b6798b34c68229c89445b8cfef44eea.zip | |
feat(helm-ls): enable dynamicRegistration for didChangeWatchedFiles (#2992)
This is required for the upcoming release of helm-ls
see https://github.com/mrjosh/helm-ls/pull/58
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/helm_ls.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/helm_ls.lua b/lua/lspconfig/server_configurations/helm_ls.lua index c41e6283..4908e238 100644 --- a/lua/lspconfig/server_configurations/helm_ls.lua +++ b/lua/lspconfig/server_configurations/helm_ls.lua @@ -1,11 +1,20 @@ local util = require 'lspconfig.util' +local default_capabilities = { + workspace = { + didChangeWatchedFiles = { + dynamicRegistration = true, + }, + }, +} + return { default_config = { cmd = { 'helm_ls', 'serve' }, filetypes = { 'helm' }, root_dir = util.root_pattern 'Chart.yaml', single_file_support = true, + capabilities = default_capabilities, }, docs = { description = [[ @@ -21,6 +30,7 @@ If need Helm file highlight use [vim-helm](https://github.com/towolf/vim-helm) p ]], default_config = { root_dir = [[root_pattern("Chart.yaml")]], + capabilities = [[default capabilities, with dynamicRegistration for didChangeWatchedFiles true]], }, }, } |
