diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-02-08 17:25:53 -0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2020-02-16 17:53:33 -0800 |
commit | 1eb0f5371ae8cee90b97f586a99505cfa5913504 (patch) | |
tree | 349b21312c3e2c47cb5fc6d8c9195e9fa3fa0cad /runtime/lua/vim/lsp.lua | |
parent | c15bd6cd279dbed5d246af05c4c0625387be02af (diff) | |
download | rneovim-1eb0f5371ae8cee90b97f586a99505cfa5913504.tar.gz rneovim-1eb0f5371ae8cee90b97f586a99505cfa5913504.tar.bz2 rneovim-1eb0f5371ae8cee90b97f586a99505cfa5913504.zip |
LSP: fix validate_client_config
- `cmd_env` is a table not a function.
- tests: Set $NVIM_LOG_FILE for fake LSP server.
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index e5b6653346..94f0d62d8d 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -154,7 +154,7 @@ local function validate_client_config(config) callbacks = { config.callbacks, "t", true }; capabilities = { config.capabilities, "t", true }; cmd_cwd = { config.cmd_cwd, optional_validator(is_dir), "directory" }; - cmd_env = { config.cmd_env, "f", true }; + cmd_env = { config.cmd_env, "t", true }; name = { config.name, 's', true }; on_error = { config.on_error, "f", true }; on_exit = { config.on_exit, "f", true }; |