summaryrefslogtreecommitdiff
path: root/tests/minimal_lsp.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-01-02 14:53:01 +0100
committerGitHub <[email protected]>2022-01-02 14:53:01 +0100
commitb3cfd165fbca4c8b595ed577027a5171e33a00e9 (patch)
treebfc6526edf613b294733d46ff823d69d6e9a58df /tests/minimal_lsp.lua
parent73bf039c6333ba9cb3af93437b26c41e14566c47 (diff)
refactor(test): cleanup test utilities (#2132)
Diffstat (limited to 'tests/minimal_lsp.lua')
-rw-r--r--tests/minimal_lsp.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/minimal_lsp.lua b/tests/minimal_lsp.lua
index 12a4a6a9..a4ecd4fb 100644
--- a/tests/minimal_lsp.lua
+++ b/tests/minimal_lsp.lua
@@ -8,12 +8,7 @@ end
vim.cmd [[set runtimepath=$VIMRUNTIME]]
-local temp_dir
-if on_windows then
- temp_dir = vim.loop.os_getenv "TEMP"
-else
- temp_dir = "/tmp"
-end
+local temp_dir = vim.loop.os_getenv "TEMP" or "/tmp"
vim.cmd("set packpath=" .. join_paths(temp_dir, "nvim", "site"))