Disable lsp-ui-doc on mouse hover and set F1 key to trigger it.

This commit is contained in:
kj 2022-06-06 17:11:28 -04:00
parent 42ff8f3cbd
commit 553694530e
1 changed files with 5 additions and 1 deletions

View File

@ -80,12 +80,16 @@
(use-package lsp-ui
:defer t
:straight t
:bind (("<f1>" . lsp-ui-doc-glance))
:bind (:map lsp-mode-map
("<f1>" . lsp-ui-doc-glance))
:hook (lsp-mode . lsp-ui-mode)
:init
(setq lsp-ui-sideline-show-diagnostics nil
lsp-ui-sideline-ignore-duplicate t
lsp-ui-doc-show-with-cursor nil
lsp-ui-doc-show-with-mouse nil
lsp-ui-doc-position 'at-point
lsp-ui-doc-delay 0.1
lsp-ui-imenu-colors `(,(face-foreground 'font-lock-keyword-face)
,(face-foreground 'font-lock-string-face)