From 3a334e6cc8866b95dc7a9706f8ba48402118ef44 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 13 Jan 2026 14:48:35 +0000 Subject: attic --- attic/elisp/misc.el | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'attic/elisp/misc.el') diff --git a/attic/elisp/misc.el b/attic/elisp/misc.el index 7cf9029..0e74ea4 100644 --- a/attic/elisp/misc.el +++ b/attic/elisp/misc.el @@ -1270,3 +1270,34 @@ It should be the title of the web page as returned by `rdrview'" (add-hook 'ement-event-hook #'jao-ement-track) (jao-shorten-modes 'ement-room-mode) (jao-tracking-cleaner "^\\*Ement Room: \\(.+\\)\\*" "@\\1")) + +;;;; lsp +(use-package lsp-mode + :disabled t + ;; :ensure t + :commands lsp + :custom + ;; what to use when checking on-save. "check" is default, I prefer clippy + (lsp-rust-analyzer-cargo-watch-command "clippy") + (lsp-eldoc-render-all t) + (lsp-idle-delay 0.6) + ;; enable / disable the hints as you prefer: + (lsp-inlay-hint-enable t) + ;; These are optional configurations. See https://emacs-lsp.github.io/lsp-mode/page/lsp-rust-analyzer/#lsp-rust-analyzer-display-chaining-hints for a full list + (lsp-rust-analyzer-display-lifetime-elision-hints-enable "skip_trivial") + (lsp-rust-analyzer-display-chaining-hints nil) + (lsp-rust-analyzer-display-lifetime-elision-hints-use-parameter-names nil) + (lsp-rust-analyzer-display-closure-return-type-hints t) + (lsp-rust-analyzer-display-parameter-hints nil) + (lsp-rust-analyzer-display-reborrow-hints nil) + :config + (add-hook 'lsp-mode-hook 'lsp-ui-mode)) + +(use-package lsp-ui + :disabled t + ;; :ensure t + :commands lsp-ui-mode + :custom + (lsp-ui-peek-always-show t) + (lsp-ui-sideline-show-hover t) + (lsp-ui-doc-enable t)) -- cgit v1.2.3