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:
parent
ce1a062606
commit
d22f00dcc5
1 changed files with 7 additions and 2 deletions
|
@ -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))
|
|
||||||
|
|
Loading…
Reference in a new issue