fix(emacs): expand eglot, add nix lsp
This commit is contained in:
parent
340cd38d2f
commit
b5bc7fe871
1 changed files with 4 additions and 2 deletions
|
@ -7,12 +7,14 @@
|
||||||
:custom
|
:custom
|
||||||
(eglot-events-buffer-config '(:size 0 :format full))
|
(eglot-events-buffer-config '(:size 0 :format full))
|
||||||
:custom-face (eglot-inlay-hint-face ((t (:height 1.0))))
|
:custom-face (eglot-inlay-hint-face ((t (:height 1.0))))
|
||||||
:hook ((racket-mode rust-mode irony-mode) . eglot-ensure)
|
:hook ((racket-mode rust-mode irony-mode tuareg-mode python-mode tsx-ts-mode nix-mode) . eglot-ensure)
|
||||||
:bind (:map eglot-mode-map
|
:bind (:map eglot-mode-map
|
||||||
("C-c l r" . eglot-rename)
|
("C-c l r" . eglot-rename)
|
||||||
("C-c l a" . eglot-code-actions)
|
("C-c l a" . eglot-code-actions)
|
||||||
("C-c l f" . eglot-format))
|
("C-c l f" . eglot-format))
|
||||||
:init (fset #'jsonrpc--log-event #'ignore))
|
:init
|
||||||
|
(fset #'jsonrpc--log-event #'ignore)
|
||||||
|
(add-to-list 'eglot-server-programs '(nix-mode "nil")))
|
||||||
(use-package eglot-booster
|
(use-package eglot-booster
|
||||||
:straight (eglot-booster :type git :host github :repo "jdtsmith/eglot-booster")
|
:straight (eglot-booster :type git :host github :repo "jdtsmith/eglot-booster")
|
||||||
:after (eglot)
|
:after (eglot)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue