selectrum: use consult-customize for preview keys

This commit is contained in:
Itai Y. Efrat 2021-05-26 02:33:13 +03:00
parent 59ca6186d2
commit 4359d96c4c

View file

@ -108,12 +108,15 @@
consult-line-numbers-widen t consult-line-numbers-widen t
consult-async-input-debounce 0.5 consult-async-input-debounce 0.5
consult-async-input-throttle 0.8) consult-async-input-throttle 0.8)
(mapc (consult-customize
(lambda (x) (setf consult-ripgrep consult-git-grep consult-grep
(alist-get x consult-config) consult-bookmark consult-recent-file
(list :preview-key (list (kbd "C-SPC") (kbd "C-M-j") (kbd "C-M-k"))))) +default/search-project +default/search-project-for-symbol-at-point
'(consult-bookmark consult-recent-file consult-theme +default/search-other-project +selectrum/search-symbol-at-point
consult--grep consult-grep consult-ripgrep consult-git-grep +default/search-project))) +default/search-cwd +default/search-other-cwd
+default/search-notes-for-symbol-at-point
consult--source-file consult--source-project-file consult--source-bookmark
:preview-key (list (kbd "C-SPC") (kbd "C-M-j") (kbd "C-M-k"))))
(use-package! consult-flycheck (use-package! consult-flycheck
:when (featurep! :checkers syntax) :when (featurep! :checkers syntax)