diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2023-03-10 17:30:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 17:30:40 +0100 |
commit | d3c8d104bc921a27d56d2438f98bf7e80b623e47 (patch) | |
tree | f1f2fef42023e95047ab59d78764d53f85e3a156 /test/functional/plugin/lsp_spec.lua | |
parent | 762a06c6bcfbcc1e40ba670bae10bacdbb973524 (diff) | |
download | rneovim-d3c8d104bc921a27d56d2438f98bf7e80b623e47.tar.gz rneovim-d3c8d104bc921a27d56d2438f98bf7e80b623e47.tar.bz2 rneovim-d3c8d104bc921a27d56d2438f98bf7e80b623e47.zip |
fix(lsp): prevent lsp tests from picking up local user config (#22606)
Sets `NVIM_APPNAME` for the lsp server instances and also for the
`exec_lua` environment to ensure local user config doesn't interfere
with the test cases.
My local `ftplugin/xml.lua` broke the LSP test cases about setting
`omnifunc` defaults.
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r-- | test/functional/plugin/lsp_spec.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index 56c53a6fed..c621a5eae2 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -57,6 +57,7 @@ describe('LSP', function() return lsp.start_client { cmd_env = { NVIM_LOG_FILE = fake_lsp_logfile; + NVIM_APPNAME = "nvim_lsp_test"; }; cmd = { vim.v.progpath, '-l', fake_lsp_code, test_name; |