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.
This commit is contained in:
finga 2024-10-02 08:52:57 +02:00
parent ce1a062606
commit d22f00dcc5

View file

@ -46,8 +46,13 @@
;; enable flyspell checks for comments in code ;; enable flyspell checks for comments in code
(add-hook 'prog-mode-hook #'flyspell-prog-mode) (add-hook 'prog-mode-hook #'flyspell-prog-mode)
(use-package lsp-mode (use-package lsp-mode
:ensure t)
(use-package lsp-ui
:ensure t :ensure t
:bind
("C-c i" . lsp-ui-doc-show)
:config :config
(lsp-inlay-hints-mode) (setq lsp-ui-doc-position 'at-point))
(setq lsp-inlay-hint-enable t))