tools/lsp: add j/k/C-j/C-k keys for lsp-ui-peek
This commit is contained in:
parent
a776664ebc
commit
2491c8ed2c
1 changed files with 6 additions and 0 deletions
|
@ -120,6 +120,12 @@ server getting expensively restarted when reverting buffers."
|
||||||
;; errors flash briefly and then disappear).
|
;; errors flash briefly and then disappear).
|
||||||
lsp-ui-sideline-show-hover nil)
|
lsp-ui-sideline-show-hover nil)
|
||||||
|
|
||||||
|
(map! :map lsp-ui-peek-mode-map
|
||||||
|
"j" #'lsp-ui-peek--select-next
|
||||||
|
"k" #'lsp-ui-peek--select-prev
|
||||||
|
"C-k" #'lsp-ui-peek--select-prev-file
|
||||||
|
"C-j" #'lsp-ui-peek--select-next-file)
|
||||||
|
|
||||||
(when (featurep! +peek)
|
(when (featurep! +peek)
|
||||||
(set-lookup-handlers! 'lsp-ui-mode :async t
|
(set-lookup-handlers! 'lsp-ui-mode :async t
|
||||||
:definition 'lsp-ui-peek-find-definitions
|
:definition 'lsp-ui-peek-find-definitions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue