Narrow eglot to specific modes that have LSP servers
This commit is contained in:
parent
a783dfac73
commit
481f62ef0c
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue