selectrum: clean up selectrum config
- remove unnecessary configuration of `selectrum` and `selectrum-prescient` - fix type of `selectrum-fix-vertical-window-height`
This commit is contained in:
parent
83abd71db7
commit
336ad46c47
1 changed files with 3 additions and 11 deletions
|
@ -3,16 +3,12 @@
|
||||||
(use-package! selectrum
|
(use-package! selectrum
|
||||||
:hook (doom-first-input . selectrum-mode)
|
:hook (doom-first-input . selectrum-mode)
|
||||||
:init
|
:init
|
||||||
(setq selectrum-display-action nil
|
(setq selectrum-extend-current-candidate-highlight t
|
||||||
selectrum-extend-current-candidate-highlight t
|
selectrum-fix-vertical-window-height t
|
||||||
selectrum-fix-vertical-window-height 17
|
|
||||||
selectrum-max-window-height 17)
|
selectrum-max-window-height 17)
|
||||||
(when (featurep! +prescient)
|
(when (featurep! +prescient)
|
||||||
(setq completion-styles '(substring partial-completion)))
|
(setq completion-styles '(substring partial-completion)))
|
||||||
:config
|
:config
|
||||||
(defadvice! +selectrum-refresh-on-cycle (&rest _)
|
|
||||||
:after 'marginalia-cycle
|
|
||||||
(when (bound-and-true-p selectrum-mode) (selectrum-exhibit)))
|
|
||||||
(defun +selectrum/backward-updir ()
|
(defun +selectrum/backward-updir ()
|
||||||
"Delete char before or go up directory for file cagetory selectrum buffers."
|
"Delete char before or go up directory for file cagetory selectrum buffers."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
@ -31,11 +27,7 @@
|
||||||
(use-package! selectrum-prescient
|
(use-package! selectrum-prescient
|
||||||
:when (featurep! +prescient)
|
:when (featurep! +prescient)
|
||||||
:hook (selectrum-mode . selectrum-prescient-mode)
|
:hook (selectrum-mode . selectrum-prescient-mode)
|
||||||
:hook (selectrum-mode . prescient-persist-mode)
|
:hook (selectrum-mode . prescient-persist-mode))
|
||||||
:config
|
|
||||||
(setq selectrum-preprocess-candidates-function #'selectrum-prescient--preprocess)
|
|
||||||
(add-hook 'selectrum-candidate-selected-hook #'selectrum-prescient--remember)
|
|
||||||
(add-hook 'selectrum-candidate-inserted-hook #'selectrum-prescient--remember))
|
|
||||||
|
|
||||||
(use-package! orderless
|
(use-package! orderless
|
||||||
:when (not (featurep! +prescient))
|
:when (not (featurep! +prescient))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue