[compleseus] tuned completion-style and added support for M-:

This commit is contained in:
Thanh Vuong 2021-09-28 11:30:09 -06:00 committed by Maxi Wolff
parent a911c9fe4d
commit 76841d87fc

View file

@ -257,9 +257,7 @@
(defun compleseus/init-orderless ()
(use-package orderless)
:init
(setq completion-styles '(orderless)
;; for ssh completion
completion-category-overrides '((file (styles basic partial-completion)))
(setq completion-styles '(basic partial-completion orderless)
completion-category-defaults nil
completion-category-overrides '((file (styles . (partial-completion))))))
@ -296,6 +294,10 @@
;; Enable recursive minibuffers
(setq enable-recursive-minibuffers t)
;; when vertico is used set this so tab when doing M-: will show suggestions
;; https://github.com/minad/vertico/issues/24
(setq completion-in-region-function #'consult-completion-in-region)
;; Optionally enable cycling for `vertico-next' and `vertico-previous'.
;; (setq vertico-cycle t)
(vertico-mode)
@ -320,7 +322,6 @@
"rl" 'vertico-repeat
"sl" 'vertico-repeat)))
(defun spacemacs/compleseus-wgrep-change-to-wgrep-mode ()
(interactive)
(wgrep-change-to-wgrep-mode)