From 73d02ab60344af6a4746e53afffb89ac30b1ee6f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 24 Sep 2022 12:35:03 -0700 Subject: fix(prog/lsp): apply a number of fixes related to LSP Now that I've switched back to LSP, there's some configuration to delete and some to update. The configuration related to rust is fixed (lsp-ui was not loading properly), and I'm also disabling the inlay hints (they are very intrusive, I'll need more tweaks to find something that works for me). For the LSP configuration itself, I'm tweaking a few more things, especially related to the UI. Finally, deleting configurations for eglot and go: eglot is replaced by lsp-mode, and go's configuration is in its own file. Change-Id: I73fb4b66c8816dd6e20efa358c81e3c306b8255f --- emacs/custom/my-lang-rust.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'emacs/custom/my-lang-rust.el') diff --git a/emacs/custom/my-lang-rust.el b/emacs/custom/my-lang-rust.el index eb8e9a5..e6374a7 100644 --- a/emacs/custom/my-lang-rust.el +++ b/emacs/custom/my-lang-rust.el @@ -8,11 +8,16 @@ (require 'rustic) (require 'lsp-rust) -(setq rustic-lsp-server 'rust-analyzer) -(setq rustic-lsp-client 'lsp-mode) +(setq lsp-rust-analyzer-cargo-watch-enable t) +(setq lsp-rust-analyzer-proc-macro-enable t) +(setq lsp-rust-full-docs t) +(setq lsp-rust-server 'rust-analyzer) + (setq rustic-format-on-save t) +(setq rustic-lsp-client 'lsp-mode) +(setq rustic-lsp-server 'rust-analyzer) -(add-hook 'rustic-mode-hook #'lsp-rust-analyzer-inlay-hints-mode) +(add-hook 'rusti-mode-hook #'lsp-deferred) (provide 'my-lang-rust) -- cgit 1.4.1