mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2026-05-06 00:56:10 +02:00
refactor(tests): simpler temp_dir detection (#1626)
This commit is contained in:
parent
4b21740aae
commit
486d51cbf4
@ -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'))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user