Change completion settings

This commit is contained in:
Jens Luedicke
2026-01-27 15:57:37 +01:00
parent 41b8b20f76
commit c82777c1e5
3 changed files with 178 additions and 0 deletions

View File

@@ -20,6 +20,26 @@
;; Enable cycling
(setq vertico-cycle t))
;; Load vertico extensions
(add-to-list 'load-path
(expand-file-name "extensions"
(file-name-directory (locate-library "vertico"))))
;; Vertico directory navigation - arrow keys for file browsing
(use-package vertico-directory
:ensure nil ; Bundled with vertico
:after vertico
:bind (:map vertico-map
;; Navigate up with left arrow
("<left>" . vertico-directory-up)
;; Complete/enter with right arrow
("<right>" . vertico-directory-enter)
;; Backspace goes up if at beginning
("DEL" . vertico-directory-delete-char)
("M-DEL" . vertico-directory-delete-word))
;; Tidy shadowed file names
:hook (rfn-eshadow-update-overlay . vertico-directory-tidy))
;;; Savehist - Persist history over Emacs restarts
(use-package savehist
:ensure nil