aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorJio <matthias.galliou@gmail.com>2023-04-14 11:33:29 +0200
committerGitHub <noreply@github.com>2023-04-14 17:33:29 +0800
commit88b9de8274bdeb9cbc79303a4cd43861fe79d5c5 (patch)
treef39d9e9253e579eca065dce71f1c988d60acb95d /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-88b9de8274bdeb9cbc79303a4cd43861fe79d5c5.tar
nvim-lspconfig-88b9de8274bdeb9cbc79303a4cd43861fe79d5c5.tar.gz
nvim-lspconfig-88b9de8274bdeb9cbc79303a4cd43861fe79d5c5.tar.bz2
nvim-lspconfig-88b9de8274bdeb9cbc79303a4cd43861fe79d5c5.tar.lz
nvim-lspconfig-88b9de8274bdeb9cbc79303a4cd43861fe79d5c5.tar.xz
nvim-lspconfig-88b9de8274bdeb9cbc79303a4cd43861fe79d5c5.tar.zst
nvim-lspconfig-88b9de8274bdeb9cbc79303a4cd43861fe79d5c5.zip
fix(helm_ls): fix wrong cmd (#2560)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/helm_ls.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lspconfig/server_configurations/helm_ls.lua b/lua/lspconfig/server_configurations/helm_ls.lua
index c9adb115..4e357dd6 100644
--- a/lua/lspconfig/server_configurations/helm_ls.lua
+++ b/lua/lspconfig/server_configurations/helm_ls.lua
@@ -1,15 +1,15 @@
local util = require 'lspconfig.util'
local bin_name = 'helm_ls'
-local cmd = { bin_name }
+local cmd = { bin_name, 'serve' }
if vim.fn.has 'win32' == 1 then
- cmd = { 'cmd.exe', '/C', bin_name }
+ cmd = { 'cmd.exe', '/C', unpack(cmd) }
end
return {
default_config = {
- cmd = { cmd, 'serve' },
+ cmd = cmd,
filetypes = { 'helm' },
root_dir = util.root_pattern 'Chart.yaml',
single_file_support = true,