Remove eglot-ensure hooks

This commit is contained in:
Evie Litherland-Smith 2024-12-03 10:19:01 +00:00
parent 87692cc787
commit f56f7605df

View file

@ -1100,12 +1100,7 @@
("C-c c e" . eglot) ("C-c c e" . eglot)
("C-c c a" . eglot-code-actions) ("C-c c a" . eglot-code-actions)
("C-c c r" . eglot-rename)) ("C-c c r" . eglot-rename))
:hook ((eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t))) :hook ((eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t))))
(nix-mode . (lambda () (if (executable-find "nixd" t) (eglot-ensure))))
(python-base-mode . (lambda () (if (executable-find "pylsp" nil) (eglot-ensure))))
((lua-mode lua-ts-mode) . (lambda () (if (executable-find "lua-language-server" nil) (eglot-ensure))))
((rust-mode rust-ts-mode) . (lambda () (if (executable-find "rust-analyzer" nil) (eglot-ensure))))
(js-ts-mode . (lambda () (if (executable-find "typescript-language-server" nil) (eglot-ensure)))))
:custom :custom
(eglot-menu-string "lsp") (eglot-menu-string "lsp")
(eglot-send-changes-idle-time 0.5) (eglot-send-changes-idle-time 0.5)