Hook eglot-ensure to prog-mode

This commit is contained in:
Evie Litherland-Smith 2024-12-03 10:24:07 +00:00
parent 7a06e51a1c
commit 186ae249f6

View file

@ -1100,7 +1100,8 @@
("C-c c e" . eglot)
("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))))
:hook ((prog-mode . eglot-ensure)
(eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t))))
:custom
(eglot-menu-string "lsp")
(eglot-send-changes-idle-time 0.5)