From 36d41b600ab9f94d4ebd1c11846ad6d476d2b899 Mon Sep 17 00:00:00 2001 From: Miko Nieminen Date: Mon, 18 Oct 2021 01:38:20 +0200 Subject: [PATCH] fix(lsp): move lsp-session to doom cache dir (#5650) Because this data contains cached session data, it makes more sense to have it under `~/.emacs.d/.local/cache` so that it is clear that it can and should be removed when debugging and testing LSP using modules. Fix #5649 --- modules/tools/lsp/+lsp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tools/lsp/+lsp.el b/modules/tools/lsp/+lsp.el index 265e3bed6..7717a1f22 100644 --- a/modules/tools/lsp/+lsp.el +++ b/modules/tools/lsp/+lsp.el @@ -21,7 +21,7 @@ about it (it will be logged to *Messages* however).") :commands lsp-install-server :init ;; Don't touch ~/.emacs.d, which could be purged without warning - (setq lsp-session-file (concat doom-etc-dir "lsp-session") + (setq lsp-session-file (concat doom-cache-dir "lsp-session") lsp-server-install-dir (concat doom-etc-dir "lsp")) ;; Don't auto-kill LSP server after last workspace buffer is killed, because I ;; will do it for you, after `+lsp-defer-shutdown' seconds.