Use marginalia for annotations in selection interfaces

This commit is contained in:
Charlotte Van Petegem 2021-03-21 15:09:07 +01:00
parent 91faf61ee6
commit 412ced231b
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -44,7 +44,7 @@
"ws" '(split-window-horizontally :which-key "split horizontal")
"wd" '(delete-window :which-key "delete")
"x" '(M-x :which-key "exec")
"x" '(execute-extended-command :which-key "exec")
)
)
@ -136,6 +136,18 @@
)
)
;; Annotations in selection interface
(use-package marginalia
:demand t
:custom
(marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light nil))
:config
(marginalia-mode)
(advice-add #'marginalia-cycle :after (lambda () (selectrum-exhibit 'keep-selected)))
:general
(:keymaps 'minibuffer-local-map "M-a" 'marginalia-cycle)
)
;; Markdown syntax support
(use-package markdown-mode
:commands (markdown-mode gfm-mode)