Narrow eglot to specific modes that have LSP servers

This commit is contained in:
Evie Litherland-Smith 2023-11-28 14:45:07 +00:00
parent a783dfac73
commit 481f62ef0c
2 changed files with 18 additions and 2 deletions

View file

@ -437,7 +437,15 @@
(use-package eglot
:ensure t
:bind (("C-c c e" . eglot))
:hook (prog-mode . eglot-ensure)
:hook ((nix-mode
fortran-mode
shell-script-mode
markdown-mode
lua-mode
python-mode
python-ts-mode
rust-mode
rust-ts-mode) . eglot-ensure)
:custom
(eglot-extend-to-xref t)
(eglot-autoshutdown t)

View file

@ -520,7 +520,15 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(use-package eglot
:ensure t
:bind (("C-c c e" . eglot))
:hook (prog-mode . eglot-ensure)
:hook ((nix-mode
fortran-mode
shell-script-mode
markdown-mode
lua-mode
python-mode
python-ts-mode
rust-mode
rust-ts-mode) . eglot-ensure)
:custom
(eglot-extend-to-xref t)
(eglot-autoshutdown t)