Skip to content

Commit

Permalink
feat(helm-ls): enable dynamicRegistration for didChangeWatchedFiles (#…
Browse files Browse the repository at this point in the history
…2992)

This is required for the upcoming release of helm-ls
see mrjosh/helm-ls#58
  • Loading branch information
qvalentin authored Jan 31, 2024
1 parent b901432 commit 1861879
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/lspconfig/server_configurations/helm_ls.lua
Original file line number Diff line number Diff line change
@@ -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 = [[
Expand All @@ -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]],
},
},
}

0 comments on commit 1861879

Please sign in to comment.