diff options
| author | jao <jao@gnu.org> | 2026-01-13 14:48:35 +0000 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-01-13 14:48:35 +0000 |
| commit | 3a334e6cc8866b95dc7a9706f8ba48402118ef44 (patch) | |
| tree | 058c0d71d2557e00699eb0ee7f4b1f45aa6863a4 /attic/elisp | |
| parent | 8fbb66a7d9f4e2b222244f5771e6dc9eba170fbe (diff) | |
| download | elibs-3a334e6cc8866b95dc7a9706f8ba48402118ef44.tar.gz elibs-3a334e6cc8866b95dc7a9706f8ba48402118ef44.tar.bz2 | |
attic
Diffstat (limited to 'attic/elisp')
| -rw-r--r-- | attic/elisp/misc.el | 31 |
1 files changed, 31 insertions, 0 deletions
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)) |
