Hover doc on keybind

This commit is contained in:
outfoxxed 2022-12-27 21:33:10 -08:00
parent e87e53447f
commit 0b23369f03
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -250,8 +250,7 @@
(add-hook 'evil-insert-state-exit-hook #'lsp-signature-stop))
(use-package lsp-ui
:init
(setq lsp-ui-doc-show-with-cursor t
lsp-ui-doc-position 'top
(setq lsp-ui-doc-position 'at-point
lsp-ui-doc-delay 0.5)
:config
(define-key lsp-ui-mode-map [remap xref-find-definitions] #'lsp-ui-peek-find-definitions)
@ -264,6 +263,7 @@
(define-key evil-normal-state-map (kbd "SPC l = r") #'lsp-format-region)
(define-key evil-normal-state-map (kbd "SPC l s q") #'lsp-workspace-shutdown)
(define-key evil-normal-state-map (kbd "SPC l s r") #'lsp-workspace-restart)
(define-key evil-normal-state-map (kbd "SPC l h") #'lsp-ui-doc-glance)
;; Controls inside references popup
(define-key lsp-ui-peek-mode-map (kbd "j") #'lsp-ui-peek--select-next)
(define-key lsp-ui-peek-mode-map (kbd "k") #'lsp-ui-peek--select-prev)