Add keybind to initiate eglot connection when down

This commit is contained in:
eriedaberrie 2024-12-22 00:34:51 -08:00
parent 40d8c92ebb
commit e6d2fe10e4

16
init.el
View file

@ -269,13 +269,15 @@
(use-package eglot
:ensure nil
:bind (:map eglot-mode-map
("C-c e c" . eglot-code-actions)
("C-c e r" . eglot-rename)
("C-c e f" . eglot-format)
("C-c e s" . eglot-shutdown)
("C-c e S" . eglot-shutdown-all)
("C-c e R" . eglot-reconnect))
:bind
("C-c e" . eglot)
(:map eglot-mode-map
("C-c e c" . eglot-code-actions)
("C-c e r" . eglot-rename)
("C-c e f" . eglot-format)
("C-c e s" . eglot-shutdown)
("C-c e S" . eglot-shutdown-all)
("C-c e R" . eglot-reconnect))
:hook
(c-mode . eglot-ensure)
(c-ts-mode . eglot-ensure)