module: add :completion corfu
This commit's primary goal is allowing use of [minad/corfu](https://github.com/minad/corfu) as an alternative to [company](https://github.com/company-mode/company-mode). It introduces a module under :completion for this purpose, plus some conditionals on other relevant modules to toggle functionality like lsp back-ends and [minad/cape](https://github.com/minad/cape) capfs for certain modes. Other optional or miscellaneous features include: - Support for displaying the completion's documentation on a secondary popup; - Support for terminal display if :os tty; - Support for icons if +icons; - Support for tab-and-go completion if +tng;
This commit is contained in:
parent
35dc13632b
commit
c6b7eb6e7c
5 changed files with 294 additions and 1 deletions
10
modules/completion/corfu/autoload.el
Normal file
10
modules/completion/corfu/autoload.el
Normal file
|
@ -0,0 +1,10 @@
|
|||
;;; completion/corfu/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +corfu-move-to-minibuffer ()
|
||||
;; Taken from corfu's README.
|
||||
;; TODO: extend this to other completion front-ends.
|
||||
(interactive)
|
||||
(let ((completion-extra-properties corfu--extra)
|
||||
(completion-cycle-threshold completion-cycling))
|
||||
(apply #'consult-completion-in-region completion-in-region--data)))
|
Loading…
Add table
Add a link
Reference in a new issue