feat(corfu): add omnicompletion bindings

This commit is contained in:
Kiana Sheibani 2024-07-22 13:33:26 -04:00
parent 962ffbe623
commit 4fb75bf17b
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -1453,7 +1453,25 @@ Everything else goes in ~config.el~, which is managed by [[*=confpkg=][confpkg]]
;; I don't really use TAB very often, so prefer other actions
(setq +corfu-want-tab-prefer-navigating-snippets t
+corfu-want-tab-prefer-expand-snippets t
+corfu-want-tab-prefer-navigating-org-tables t))
+corfu-want-tab-prefer-navigating-org-tables t
+corfu-want-minibuffer-completion nil
corfu-min-width 25))
#+end_src
Before switching to Corfu, I got really used to Doom's omnicomplete bindings for various company backends. Doom unfortunately doesn't do this for CAPFs, so we'll have to do the work ourselves.
#+begin_src emacs-lisp
(map! :prefix "C-x"
:i "C-e" #'cape-elisp-symbol
:i "C-f" #'cape-file
:i "C-l" #'cape-line
:i "C-]" #'complete-tag
:i "s" #'cape-dict
:i "C-s" #'yasnippet-capf
:i "C-d" #'cape-dabbrev
:i "\\" #'cape-tex)
#+end_src
** Eldoc