fix(lsp.lua): set default log directory
Set the default log directory to /tmp if the LOG_HOME environment variable is not set. Fixes linux-home/nvim.d#3
This commit is contained in:
parent
0f18fb7cc5
commit
3a210b1d56
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,10 @@ local ok, lspconfig = pcall(require, "lspconfig")
|
||||||
|
|
||||||
local log_directory = vim.env.LOG_HOME
|
local log_directory = vim.env.LOG_HOME
|
||||||
|
|
||||||
|
if log_directory == nil then
|
||||||
|
log_directory = "/tmp"
|
||||||
|
end
|
||||||
|
|
||||||
if not ok then
|
if not ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue