tweak(config): feature-gate company keybindings

In anticipation of the Corfu module, this PR feature-gates the
company-mode keybindings for non-Evil users. This is already done for
Evil users.
This commit is contained in:
LemonBreezes 2023-03-29 01:06:05 -04:00 committed by Henrik Lissner
parent 7cd0b87cd6
commit b0826b9a90

View file

@ -506,8 +506,9 @@
"C-x K" #'doom/kill-this-buffer-in-all-windows "C-x K" #'doom/kill-this-buffer-in-all-windows
;;; company-mode ;;; company-mode
"C-;" #'+company/complete (:when (modulep! :completion company)
(:after company "C-;" #'+company/complete
(:after company
:map company-active-map :map company-active-map
"C-o" #'company-search-kill-others "C-o" #'company-search-kill-others
"C-n" #'company-select-next "C-n" #'company-select-next
@ -528,7 +529,7 @@
:map company-search-map :map company-search-map
"C-n" #'company-search-repeat-forward "C-n" #'company-search-repeat-forward
"C-p" #'company-search-repeat-backward "C-p" #'company-search-repeat-backward
"C-s" (cmd! (company-search-abort) (company-filter-candidates))) "C-s" (cmd! (company-search-abort) (company-filter-candidates))))
;;; ein notebooks ;;; ein notebooks
(:after ein:notebook-multilang (:after ein:notebook-multilang