feat(corfu): vim-like C-n/C-p keybinds
In vim/evil, C-n/C-p invokes dabbrev, so we're doing the same, but powered by cape-dabbrev, falling back to corfu-next/corfu-prev is a corfu popup is already open. Close: #7748 Co-authored-by: 45mg <45mg@users.noreply.github.com> Co-authored-by: LemonBreezes <LemonBreezes@users.noreply.github.com>
This commit is contained in:
parent
4a4a9a1ada
commit
08f8f57e2f
2 changed files with 30 additions and 0 deletions
|
@ -192,6 +192,8 @@
|
|||
(:after corfu
|
||||
(:map corfu-mode-map
|
||||
:i "C-SPC" #'completion-at-point
|
||||
:i "C-n" #'+corfu/dabbrev-or-next
|
||||
:i "C-p" #'+corfu/dabbrev-or-last
|
||||
:n "C-SPC" (cmd! (call-interactively #'evil-insert-state)
|
||||
(call-interactively #'completion-at-point))
|
||||
:v "C-SPC" (cmd! (call-interactively #'evil-change)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue