Refactor company keybinds
Also merge evil-collection-company into Doom. Two new features to note: C-S-s will invoke your completion engine for the remaining results.
This commit is contained in:
parent
e973acad6f
commit
19f1c70144
2 changed files with 11 additions and 2 deletions
|
@ -126,12 +126,18 @@
|
|||
(:map company-active-map
|
||||
;; Don't interfere with `evil-delete-backward-word' in insert mode
|
||||
"C-w" nil
|
||||
"C-o" #'company-search-kill-others
|
||||
"C-n" #'company-select-next
|
||||
"C-p" #'company-select-previous
|
||||
"C-j" #'company-select-next
|
||||
"C-k" #'company-select-previous
|
||||
"C-h" #'company-show-doc-buffer
|
||||
"C-u" #'company-previous-page
|
||||
"C-d" #'company-next-page
|
||||
"C-s" #'company-filter-candidates
|
||||
"C-S-s" #'company-search-candidates
|
||||
(:when (featurep! :completion helm)
|
||||
"C-S-s" #'helm-company)
|
||||
(:when (featurep! :completion ivy)
|
||||
"C-S-s" #'counsel-company)
|
||||
"C-SPC" #'company-complete-common
|
||||
[tab] #'company-complete-common-or-cycle
|
||||
[backtab] #'company-select-previous)
|
||||
|
@ -139,6 +145,8 @@
|
|||
(:map company-search-map
|
||||
"C-n" #'company-select-next-or-abort
|
||||
"C-p" #'company-select-previous-or-abort
|
||||
"C-j" #'company-select-next-or-abort
|
||||
"C-k" #'company-select-previous-or-abort
|
||||
"C-s" (λ! (company-search-abort) (company-filter-candidates))
|
||||
[escape] #'company-search-abort))
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
simple
|
||||
;; we'll do these ourselves
|
||||
anaconda-mode
|
||||
company
|
||||
dired
|
||||
helm
|
||||
ivy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue