all repos — nixfiles @ 65ad9cd252346a0ab3af05d299ea67bda8886139

System and user configuration, managed by nix and home-manager

emacs: fix lsp-mode in daemon sessions
Alan Pearce alan@alanpearce.eu
Tue, 21 May 2024 09:01:03 +0200
commit

65ad9cd252346a0ab3af05d299ea67bda8886139

parent

aa212dd7bef8c8326d639d72391e05d47a45be8a

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M user/emacs/early-init.eluser/emacs/early-init.el
@@ -10,3 +10,5 @@ (menu-bar-mode -1)) (scroll-bar-mode -1)
 (tool-bar-mode -1)
 (set-fringe-mode '(4 . 4))
+
+(setenv "LSP_USE_PLISTS" "true") ; must match with lsp-mode override
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -180,11 +180,10 @@ # date = "2024-05-01T22:22:02+02:00";         };
       });
       lsp-mode = self.melpaPackages.lsp-mode.overrideAttrs {
-        LSP_USE_PLISTS = "true"; # sync with below
+        LSP_USE_PLISTS = "true"; # must be set in early-init
       };
     };
     extraConfig = ''
-      (setenv "LSP_USE_PLISTS" "true") ; sync with above
       (with-eval-after-load 'editorconfig
         (setq editorconfig-exec-path "${pkgs.editorconfig-core-c}/bin/editorconfig"))
       (when (featurep 'native-compile)