1
0
Fork 0

fix(emacs): expand eglot, add nix lsp

This commit is contained in:
Lucas Sta Maria 2025-02-21 00:01:34 -05:00
parent 340cd38d2f
commit b5bc7fe871
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -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)