Skip to content

Commit 96b1ecb

Browse files
futilebrotzeit
authored andcommitted
Also bind "<tab>" in addition to "TAB" for lsp-ui-peek
When "<tab>" (which is the same as `[tab]` I believe) is not bound in `lsp-ui-peek-mode-map`, other keymaps that bind "<tab>" can grab a Tab-key press before it is handled as "TAB" by lsp-ui-peek. Therefore, also bind to "<tab>"/`[tab]` so that the key is always handled by lsp-ui-peek when the peek-window is open. This should only make a difference in GUI emacs, as console emacs can/does not differentiate between "<tab>" and "TAB".
1 parent 21ce926 commit 96b1ecb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lsp-ui-peek.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ XREFS is a list of references/definitions."
549549
(define-key map (kbd "p") 'lsp-ui-peek--select-prev)
550550
(define-key map (kbd "<up>") 'lsp-ui-peek--select-prev)
551551
(define-key map (kbd "TAB") 'lsp-ui-peek--toggle-file)
552+
(define-key map (kbd "<tab>") 'lsp-ui-peek--toggle-file)
552553
(define-key map (kbd "q") 'lsp-ui-peek--abort)
553554
(define-key map (kbd "RET") 'lsp-ui-peek--goto-xref)
554555
(define-key map (kbd "M-RET") 'lsp-ui-peek--goto-xref-other-window)

0 commit comments

Comments
 (0)