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:
Dan Anglin 2023-01-16 23:25:09 +00:00
parent 0f18fb7cc5
commit 3a210b1d56
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -2,6 +2,10 @@ local ok, lspconfig = pcall(require, "lspconfig")
local log_directory = vim.env.LOG_HOME
if log_directory == nil then
log_directory = "/tmp"
end
if not ok then
return
end