Hover doc on keybind
This commit is contained in:
parent
e87e53447f
commit
0b23369f03
4
init.el
4
init.el
|
@ -250,8 +250,7 @@
|
||||||
(add-hook 'evil-insert-state-exit-hook #'lsp-signature-stop))
|
(add-hook 'evil-insert-state-exit-hook #'lsp-signature-stop))
|
||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:init
|
:init
|
||||||
(setq lsp-ui-doc-show-with-cursor t
|
(setq lsp-ui-doc-position 'at-point
|
||||||
lsp-ui-doc-position 'top
|
|
||||||
lsp-ui-doc-delay 0.5)
|
lsp-ui-doc-delay 0.5)
|
||||||
:config
|
:config
|
||||||
(define-key lsp-ui-mode-map [remap xref-find-definitions] #'lsp-ui-peek-find-definitions)
|
(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 = 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 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 s r") #'lsp-workspace-restart)
|
||||||
|
(define-key evil-normal-state-map (kbd "SPC l h") #'lsp-ui-doc-glance)
|
||||||
;; Controls inside references popup
|
;; 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 "j") #'lsp-ui-peek--select-next)
|
||||||
(define-key lsp-ui-peek-mode-map (kbd "k") #'lsp-ui-peek--select-prev)
|
(define-key lsp-ui-peek-mode-map (kbd "k") #'lsp-ui-peek--select-prev)
|
||||||
|
|
Loading…
Reference in a new issue