From 5abce88d51dc63ffc0405bd9726bc077a5c9307b Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sat, 3 Jul 2021 18:05:04 -0700 Subject: fix: be less strict about cmd validation Some language servers lazily build cmd based on a parameter passed to setup, like powershell_es. We should change this eventually, but for now be less strict. --- lua/lspconfig/configs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lspconfig/configs.lua b/lua/lspconfig/configs.lua index e8ad78f0..a0a0a063 100644 --- a/lua/lspconfig/configs.lua +++ b/lua/lspconfig/configs.lua @@ -32,7 +32,7 @@ function configs.__newindex(t, config_name, config_def) function M.setup(config) validate { - cmd = { config.cmd, "t", default_config.cmd ~= nil }, + cmd = { config.cmd, "t", true }, root_dir = { config.root_dir, "f", default_config.root_dir ~= nil }, filetypes = { config.filetype, "t", true }, on_new_config = { config.on_new_config, "f", true }, -- cgit v1.2.3-70-g09d2