From bfffd7c55531f5f8be6b514e86f3769afa10ef8c Mon Sep 17 00:00:00 2001 From: Janis Date: Sun, 24 Aug 2025 17:36:12 +0200 Subject: [PATCH] rust-analyzer and lsp working kinda-sorta with direnv --- init.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.org b/init.org index ac976a5..cd5048e 100644 --- a/init.org +++ b/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 :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) )