Improve vertico usability
Add M-j/M-k, M-`, and M-1 to M-9 to match company
This commit is contained in:
parent
e9e0ca0252
commit
bd40189259
15
init.el
15
init.el
|
@ -99,8 +99,23 @@
|
||||||
;; Vertico (completion helper)
|
;; Vertico (completion helper)
|
||||||
(use-package vertico
|
(use-package vertico
|
||||||
:config
|
:config
|
||||||
|
(keymap-set vertico-map "M-j" #'vertico-next)
|
||||||
|
(keymap-set vertico-map "M-k" #'vertico-previous)
|
||||||
|
(keymap-set vertico-map "M-`" #'vertico-exit)
|
||||||
(vertico-mode))
|
(vertico-mode))
|
||||||
|
|
||||||
|
(use-package vertico-indexed
|
||||||
|
:after vertico
|
||||||
|
:init
|
||||||
|
(setq vertico-indexed-start 1)
|
||||||
|
:config
|
||||||
|
(dotimes (i 9)
|
||||||
|
(keymap-set vertico-map (format "M-%d" (+ i 1))
|
||||||
|
`(lambda () (interactive)
|
||||||
|
(let ((current-prefix-arg (+ ,i 1)))
|
||||||
|
(call-interactively #'vertico-exit)))))
|
||||||
|
(vertico-indexed-mode))
|
||||||
|
|
||||||
;; Editorconfig support
|
;; Editorconfig support
|
||||||
(use-package editorconfig
|
(use-package editorconfig
|
||||||
:config
|
:config
|
||||||
|
|
Loading…
Reference in a new issue