ADD Corfu
For nice popup in eglot.
This commit is contained in:
parent
393bace7cf
commit
17515a8377
1 changed files with 29 additions and 0 deletions
|
|
@ -183,6 +183,35 @@
|
||||||
)
|
)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
** Corfu
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package corfu
|
||||||
|
:ensure t
|
||||||
|
;; Optional customizations
|
||||||
|
;; :custom
|
||||||
|
;; (corfu-cycle t) ;; Enable cycling for `corfu-next/previous'
|
||||||
|
;; (corfu-auto t) ;; Enable auto completion
|
||||||
|
;; (corfu-separator ?\s) ;; Orderless field separator
|
||||||
|
;; (corfu-quit-at-boundary nil) ;; Never quit at completion boundary
|
||||||
|
;; (corfu-quit-no-match nil) ;; Never quit, even if there is no match
|
||||||
|
;; (corfu-preview-current nil) ;; Disable current candidate preview
|
||||||
|
;; (corfu-preselect 'prompt) ;; Preselect the prompt
|
||||||
|
;; (corfu-on-exact-match nil) ;; Configure handling of exact matches
|
||||||
|
;; (corfu-scroll-margin 5) ;; Use scroll margin
|
||||||
|
|
||||||
|
;; Enable Corfu only for certain modes. See also `global-corfu-modes'.
|
||||||
|
;; :hook ((prog-mode . corfu-mode)
|
||||||
|
;; (shell-mode . corfu-mode)
|
||||||
|
;; (eshell-mode . corfu-mode))
|
||||||
|
|
||||||
|
;; Recommended: Enable Corfu globally. This is recommended since Dabbrev can
|
||||||
|
;; be used globally (M-/). See also the customization variable
|
||||||
|
;; `global-corfu-modes' to exclude certain modes.
|
||||||
|
:init
|
||||||
|
(global-corfu-mode))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* General config
|
* General config
|
||||||
|
|
||||||
** Delete trailing whitespaces
|
** Delete trailing whitespaces
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue