Configure vertico-directory

This commit is contained in:
Jeremy Dormitzer 2023-04-03 09:27:28 -04:00
parent 7d57947fd7
commit 1f25985231

View File

@ -4,7 +4,8 @@
;; First Vertico, which provides the core incremental minibuffer completion engine
(use-package vertico
:straight (:files (:defaults "extensions/vertico-repeat.el"))
:straight (:files (:defaults "extensions/vertico-repeat.el"
"extensions/vertico-directory.el"))
:init
(vertico-mode))
@ -16,6 +17,16 @@
:general
(leader-map "r" #'vertico-repeat))
(use-package vertico-directory
:straight (:type built-in)
:after vertico
:general
(vertico-map "RET" #'vertico-directory-enter
"DEL" #'vertico-directory-delete-char
"M-DEL" #'vertico-directory-delete-word)
;; Tidy shadowed file names
:hook (rfn-eshadow-update-overlay . vertico-directory-tidy))
;; Save history in order to persist sort order across emacs sessions
(use-package savehist
:straight (:type built-in)