refactor(tests): simpler temp_dir detection (#1626)

This commit is contained in:
kylo252 2022-01-02 15:42:14 +01:00 committed by GitHub
parent 4b21740aae
commit 486d51cbf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'))