Disable lsp-ui-doc on mouse hover and set F1 key to trigger it.
This commit is contained in:
parent
42ff8f3cbd
commit
553694530e
@ -80,12 +80,16 @@
|
|||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:defer t
|
:defer t
|
||||||
:straight 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)
|
:hook (lsp-mode . lsp-ui-mode)
|
||||||
|
|
||||||
:init
|
:init
|
||||||
(setq lsp-ui-sideline-show-diagnostics nil
|
(setq lsp-ui-sideline-show-diagnostics nil
|
||||||
lsp-ui-sideline-ignore-duplicate t
|
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-doc-delay 0.1
|
||||||
lsp-ui-imenu-colors `(,(face-foreground 'font-lock-keyword-face)
|
lsp-ui-imenu-colors `(,(face-foreground 'font-lock-keyword-face)
|
||||||
,(face-foreground 'font-lock-string-face)
|
,(face-foreground 'font-lock-string-face)
|
||||||
|
Loading…
Reference in New Issue
Block a user