From 3a210b1d56ab4e643f17706c2a22615191f102d1 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Mon, 16 Jan 2023 23:25:09 +0000 Subject: [PATCH] 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 --- nvim/lua/plugins/config/lsp.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvim/lua/plugins/config/lsp.lua b/nvim/lua/plugins/config/lsp.lua index cd0150d..1efc4de 100644 --- a/nvim/lua/plugins/config/lsp.lua +++ b/nvim/lua/plugins/config/lsp.lua @@ -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