rust-analyzer and lsp working kinda-sorta with direnv

This commit is contained in:
Janis 2025-08-24 17:36:12 +02:00
parent 9697393a2e
commit bfffd7c555

View file

@ -1597,12 +1597,13 @@ LSP sets it's prefix key to =s-l= by default, which uses the Super key which I u
(use-package lsp-mode
:straight t
:defer t
:hook (prog-mode . lsp)
:hook (prog-mode . lsp-deferred)
:hook (lsp-mode . lsp-enable-which-key-integration)
:hook (lsp-mode . lsp-inlay-hints-mode)
:init
(setq lsp-keymap-prefix "C-l")
(add-to-list 'completion-at-point-functions #'lsp-completion-at-point)
(advice-add 'lsp :before #'envrc-reload)
:commands lsp
:general-config
(leader-def
@ -2020,7 +2021,7 @@ delimiters < and >'s."
rustic-format-on-save nil
;; rustic-format-trigger 'on-save
;; rustic-format-on-save-method #'rustic-format-buffer
rustic-analyzer-command '("/usr/bin/rust-analyzer")
;; rustic-analyzer-command '("/usr/bin/rust-analyzer")
)
;; (setq nemo/lsp-format-on-save t)
)