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 (use-package eglot
:ensure nil :ensure nil
:bind (:map eglot-mode-map :bind
("C-c e c" . eglot-code-actions) ("C-c e" . eglot)
("C-c e r" . eglot-rename) (:map eglot-mode-map
("C-c e f" . eglot-format) ("C-c e c" . eglot-code-actions)
("C-c e s" . eglot-shutdown) ("C-c e r" . eglot-rename)
("C-c e S" . eglot-shutdown-all) ("C-c e f" . eglot-format)
("C-c e R" . eglot-reconnect)) ("C-c e s" . eglot-shutdown)
("C-c e S" . eglot-shutdown-all)
("C-c e R" . eglot-reconnect))
:hook :hook
(c-mode . eglot-ensure) (c-mode . eglot-ensure)
(c-ts-mode . eglot-ensure) (c-ts-mode . eglot-ensure)