tweak(corfu): allow corfu-history without savehist
savehist is for persisting history across sessions, but users who disable savehist can still benefit from session-length Corfu history.
This commit is contained in:
parent
8337dd19a6
commit
2ede71b2ae
1 changed files with 4 additions and 3 deletions
|
@ -172,13 +172,14 @@ Meant as :around advice for `corfu--recompute'."
|
|||
:when (not (display-graphic-p))
|
||||
:hook (corfu-mode . corfu-terminal-mode))
|
||||
|
||||
;;
|
||||
;;; Extensions
|
||||
|
||||
(use-package! corfu-history
|
||||
:after savehist
|
||||
:hook (corfu-mode . corfu-history-mode)
|
||||
:config
|
||||
(add-to-list 'savehist-additional-variables 'corfu-history))
|
||||
(after! savehist (add-to-list 'savehist-additional-variables 'corfu-history)))
|
||||
|
||||
|
||||
(use-package! corfu-popupinfo
|
||||
:hook (corfu-mode . corfu-popupinfo-mode)
|
||||
:config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue