From 1f7b08c0015b90ec8db0e019db597155ada9ce18 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 31 Jul 2024 06:36:01 +0100 Subject: [PATCH] Update eglot hooks since I switched nix LSP --- init.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index f0b1c3f..2f707df 100644 --- a/init.el +++ b/init.el @@ -867,11 +867,9 @@ ("C-c c a" . eglot-code-actions) ("C-c c r" . eglot-rename)) :hook ((eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t))) - (nix-mode . (lambda () (if (and (project-current nil) (executable-find "nil" t)) + (nix-mode . (lambda () (if (and (project-current nil) (executable-find "nixd" t)) (eglot-ensure)))) - (python-base-mode . (lambda () (if (and (project-current nil) - (or (executable-find "pyright" t) - (executable-find "pylsp" t))) + (python-base-mode . (lambda () (if (and (project-current nil) (executable-find "pylsp" t)) (eglot-ensure)))) (lua-mode . (lambda () (if (and (project-current nil) (executable-find "lua-language-server" t)) (eglot-ensure))))