From 186187978b6798b34c68229c89445b8cfef44eea Mon Sep 17 00:00:00 2001 From: valentin <36446499+qvalentin@users.noreply.github.com> Date: Wed, 31 Jan 2024 01:10:03 +0100 Subject: [PATCH] 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 --- lua/lspconfig/server_configurations/helm_ls.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lua/lspconfig/server_configurations/helm_ls.lua b/lua/lspconfig/server_configurations/helm_ls.lua index c41e6283bd..4908e2389c 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]], }, }, }