From d22f00dcc5c9f87f0a73ecf4277323c69cd1549c Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 2 Oct 2024 08:52:57 +0200 Subject: [PATCH] lsp-mode, lsp-ui: Replace inlay-hints with ui-doc Remove the inlay-hints as they can be confused with the source code and replace them with ui-doc overlays which can be requested by the "C-c i" key sequence. --- .emacs.d/config/dev.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.emacs.d/config/dev.el b/.emacs.d/config/dev.el index 43fa99b..c95d15f 100644 --- a/.emacs.d/config/dev.el +++ b/.emacs.d/config/dev.el @@ -46,8 +46,13 @@ ;; enable flyspell checks for comments in code (add-hook 'prog-mode-hook #'flyspell-prog-mode) + (use-package lsp-mode + :ensure t) + +(use-package lsp-ui :ensure t + :bind + ("C-c i" . lsp-ui-doc-show) :config - (lsp-inlay-hints-mode) - (setq lsp-inlay-hint-enable t)) + (setq lsp-ui-doc-position 'at-point))