fix(default): respect evil-disable-insert-state-bindings
Respect this setting in more places. Ref:8c4d871f7c
Ref:122e3732f7
This commit is contained in:
parent
8c6ee0ed4b
commit
ed02241cb8
1 changed files with 10 additions and 6 deletions
|
@ -159,8 +159,9 @@
|
|||
|
||||
;;; :completion (in-buffer)
|
||||
(map! (:when (modulep! :completion company)
|
||||
(:unless (bound-and-true-p evil-disable-insert-state-bindings)
|
||||
:i "C-@" (cmds! (not (minibufferp)) #'company-complete-common)
|
||||
:i "C-SPC" (cmds! (not (minibufferp)) #'company-complete-common)
|
||||
:i "C-SPC" (cmds! (not (minibufferp)) #'company-complete-common))
|
||||
(:after company
|
||||
(:map company-active-map
|
||||
"C-w" nil ; don't interfere with `evil-delete-backward-word'
|
||||
|
@ -189,15 +190,18 @@
|
|||
(:when (modulep! :completion corfu)
|
||||
(:after corfu
|
||||
(:map corfu-mode-map
|
||||
(:unless (bound-and-true-p evil-disable-insert-state-bindings)
|
||||
:i "C-@" #'completion-at-point
|
||||
:i "C-SPC" #'completion-at-point
|
||||
:i "C-n" #'+corfu/dabbrev-or-next
|
||||
:i "C-p" #'+corfu/dabbrev-or-last
|
||||
: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)
|
||||
(call-interactively #'completion-at-point)))
|
||||
(:map corfu-map
|
||||
:i "C-SPC" #'corfu-insert-separator
|
||||
(:unless (bound-and-true-p evil-disable-insert-state-bindings)
|
||||
:i "C-SPC" #'corfu-insert-separator)
|
||||
"C-k" #'corfu-previous
|
||||
"C-j" #'corfu-next
|
||||
"C-u" (cmd! (let (corfu-cycle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue