diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-03 18:05:04 -0700 |
|---|---|---|
| committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-03 18:05:04 -0700 |
| commit | 5abce88d51dc63ffc0405bd9726bc077a5c9307b (patch) | |
| tree | a0c9453d90280438d34d912cd9bb7344068485c4 /lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-5abce88d51dc63ffc0405bd9726bc077a5c9307b.tar nvim-lspconfig-5abce88d51dc63ffc0405bd9726bc077a5c9307b.tar.gz nvim-lspconfig-5abce88d51dc63ffc0405bd9726bc077a5c9307b.tar.bz2 nvim-lspconfig-5abce88d51dc63ffc0405bd9726bc077a5c9307b.tar.lz nvim-lspconfig-5abce88d51dc63ffc0405bd9726bc077a5c9307b.tar.xz nvim-lspconfig-5abce88d51dc63ffc0405bd9726bc077a5c9307b.tar.zst nvim-lspconfig-5abce88d51dc63ffc0405bd9726bc077a5c9307b.zip | |
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.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 }, |
