selectrum: rework live-previews
- for the slow consult functions it's bound to `C-SPC` - for the rest of them the current approach wasn't working out great so it's removed for the time being.
This commit is contained in:
parent
7ec7134947
commit
ff9a15e683
2 changed files with 14 additions and 13 deletions
|
@ -80,8 +80,9 @@
|
|||
(setq consult-project-root-function #'doom-project-root)
|
||||
(setq completion-in-region-function #'consult-completion-in-region)
|
||||
(setq consult-narrow-key "<")
|
||||
(setf (alist-get #'consult-bookmark consult-config) (list :preview-key nil))
|
||||
(setf (alist-get #'consult-recent-file consult-config) (list :preview-key nil))
|
||||
(setf (alist-get #'consult-bookmark consult-config) (list :preview-key (kbd "C-SPC")))
|
||||
(setf (alist-get #'consult-recent-file consult-config) (list :preview-key (kbd "C-SPC")))
|
||||
(setf (alist-get #'consult--grep consult-config) (list :preview-key (kbd "C-SPC")))
|
||||
(setq consult-line-numbers-widen t)
|
||||
(setq consult-async-input-debounce 0.5)
|
||||
(setq consult-async-input-throttle 0.8))
|
||||
|
@ -111,9 +112,7 @@
|
|||
:desc "Open target with sudo" "s" #'sudo-edit
|
||||
:desc "Open target with vlf" "l" #'vlf
|
||||
:map embark-file-map
|
||||
:desc "Cycle marginalia views" "A" #'marginalia-cycle )
|
||||
(let ((embark-quit-after-action nil))
|
||||
(map! :map minibuffer-local-map "C-SPC" #'embark-default-action)))
|
||||
:desc "Cycle marginalia views" "A" #'marginalia-cycle))
|
||||
|
||||
(use-package! marginalia
|
||||
:hook (doom-first-input . marginalia-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue