rust-analyzer and lsp working kinda-sorta with direnv
This commit is contained in:
parent
9697393a2e
commit
bfffd7c555
5
init.org
5
init.org
|
@ -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
|
(use-package lsp-mode
|
||||||
:straight t
|
:straight t
|
||||||
:defer t
|
:defer t
|
||||||
:hook (prog-mode . lsp)
|
:hook (prog-mode . lsp-deferred)
|
||||||
:hook (lsp-mode . lsp-enable-which-key-integration)
|
:hook (lsp-mode . lsp-enable-which-key-integration)
|
||||||
:hook (lsp-mode . lsp-inlay-hints-mode)
|
:hook (lsp-mode . lsp-inlay-hints-mode)
|
||||||
:init
|
:init
|
||||||
(setq lsp-keymap-prefix "C-l")
|
(setq lsp-keymap-prefix "C-l")
|
||||||
(add-to-list 'completion-at-point-functions #'lsp-completion-at-point)
|
(add-to-list 'completion-at-point-functions #'lsp-completion-at-point)
|
||||||
|
(advice-add 'lsp :before #'envrc-reload)
|
||||||
:commands lsp
|
:commands lsp
|
||||||
:general-config
|
:general-config
|
||||||
(leader-def
|
(leader-def
|
||||||
|
@ -2020,7 +2021,7 @@ delimiters < and >'s."
|
||||||
rustic-format-on-save nil
|
rustic-format-on-save nil
|
||||||
;; rustic-format-trigger 'on-save
|
;; rustic-format-trigger 'on-save
|
||||||
;; rustic-format-on-save-method #'rustic-format-buffer
|
;; 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)
|
;; (setq nemo/lsp-format-on-save t)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue