feat(evil): bind K to the new floating docs box
This commit is contained in:
committed by
Rahul M. Juliato
parent
74a58f78e6
commit
a52de45861
15
init.el
15
init.el
@@ -1017,13 +1017,14 @@
|
|||||||
(let ((help-buffer "*lsp-help*"))
|
(let ((help-buffer "*lsp-help*"))
|
||||||
(when (get-buffer help-buffer)
|
(when (get-buffer help-buffer)
|
||||||
(switch-to-buffer-other-window help-buffer))))
|
(switch-to-buffer-other-window help-buffer))))
|
||||||
;; Open hover documentation
|
|
||||||
(evil-define-key 'normal 'global (kbd "K") 'ek/lsp-describe-and-jump)
|
;; Emacs 31 finaly brings us support for 'floating windows' (a.k.a. "child frames")
|
||||||
;; Yeah, on terminals, Emacs doesn't support (YET), the use of floating windows,
|
;; to terminal Emacs. If you're still using 30, docs will be shown in a buffer at the
|
||||||
;; thus, this will open a small buffer bellow your window.
|
;; inferior part of your frame.
|
||||||
;; This floating frames are called "child frames" and some recent effort is being put
|
(evil-define-key 'normal 'global (kbd "K")
|
||||||
;; into having a translation of those marvelous GUI stuff to terminal. Let's hope
|
(if (>= emacs-major-version 31)
|
||||||
;; we add this to Emacs Kick soom :)
|
#'eldoc-box-help-at-point
|
||||||
|
#'ek/lsp-describe-and-jump))
|
||||||
|
|
||||||
;; Commenting functionality for single and multiple lines
|
;; Commenting functionality for single and multiple lines
|
||||||
(evil-define-key 'normal 'global (kbd "gcc")
|
(evil-define-key 'normal 'global (kbd "gcc")
|
||||||
|
|||||||
Reference in New Issue
Block a user