add selectrum module
This commit is contained in:
parent
bc2a90dd15
commit
21a8694727
2 changed files with 58 additions and 0 deletions
43
modules/completion/selectrum/config.el
Normal file
43
modules/completion/selectrum/config.el
Normal file
|
@ -0,0 +1,43 @@
|
|||
;;; completion/selectrum/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package! selectrum
|
||||
:hook (doom-first-input . selectrum-mode))
|
||||
|
||||
(when (featurep! +prescient)
|
||||
(use-package! selectrum-prescient
|
||||
:after selectrum
|
||||
:hook ((doom-first-input . selectrum-prescient-mode)
|
||||
(doom-first-input . prescient-persist-mode))))
|
||||
|
||||
(use-package! consult
|
||||
:defer t
|
||||
:init
|
||||
(define-key!
|
||||
[remap apropos] #'consult-apropos
|
||||
[remap goto-line] #'consult-goto-line
|
||||
[remap imenu] #'consult-imenu
|
||||
[remap switch-to-buffer] #'consult-buffer
|
||||
[remap switch-to-buffer-other-window] #'consult-buffer-other-window
|
||||
[remap switch-to-buffer-other-frame] #'consult-buffer-other-frame
|
||||
[remap man] #'consult-man
|
||||
[remap yank-pop] #'consult-yank-pop
|
||||
[remap locate] #'consult-locate
|
||||
[remap load-theme] #'consult-theme))
|
||||
|
||||
(use-package! consult-flycheck)
|
||||
|
||||
(use-package! embark
|
||||
:init
|
||||
(define-key!
|
||||
"C-S-a" #'embark-act))
|
||||
|
||||
(use-package! marginalia
|
||||
:after selectrum
|
||||
:hook (doom-first-input . marginalia-mode)
|
||||
:init
|
||||
(setq-default marginalia-annotators '(marginalia-annotators-heavy)))
|
||||
|
||||
(use-package! embark-consult
|
||||
:after (embark consult)
|
||||
:hook
|
||||
(embark-collect-mode . embark-consult-preview-minor-mode))
|
15
modules/completion/selectrum/packages.el
Normal file
15
modules/completion/selectrum/packages.el
Normal file
|
@ -0,0 +1,15 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; completion/selectrum/packages.el
|
||||
|
||||
(package! selectrum)
|
||||
|
||||
(when (featurep! +prescient)
|
||||
(package! selectrum-prescient))
|
||||
|
||||
(package! consult)
|
||||
(package! consult-flycheck)
|
||||
|
||||
(package! embark)
|
||||
(package! embark-consult)
|
||||
|
||||
(package! marginalia)
|
Loading…
Add table
Add a link
Reference in a new issue