From 1fbb78e92b498fa52c66a0ca6a5322d25385ad36 Mon Sep 17 00:00:00 2001 From: StrawberryTea Date: Fri, 5 Apr 2024 18:56:06 -0500 Subject: [PATCH] fix(vertico): missing command error in consult Although it is rare for a user to not enable the :config default module, enabling/disabling modules one-by-one is common practice for debugging Doom Emacs. This PR fixes an error that occurs when you have :completion vertico enabled without enabling :config default. --- modules/completion/vertico/config.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/completion/vertico/config.el b/modules/completion/vertico/config.el index de12d0449..a25826e53 100644 --- a/modules/completion/vertico/config.el +++ b/modules/completion/vertico/config.el @@ -160,13 +160,16 @@ orderless." (consult-customize consult-ripgrep consult-git-grep consult-grep consult-bookmark consult-recent-file - +default/search-project +default/search-other-project - +default/search-project-for-symbol-at-point - +default/search-cwd +default/search-other-cwd - +default/search-notes-for-symbol-at-point - +default/search-emacsd consult--source-recent-file consult--source-project-recent-file consult--source-bookmark :preview-key "C-SPC") + (when (modulep! :config default) + (consult-customize + +default/search-project +default/search-other-project + +default/search-project-for-symbol-at-point + +default/search-cwd +default/search-other-cwd + +default/search-notes-for-symbol-at-point + +default/search-emacsd + :preview-key "C-SPC")) (consult-customize consult-theme :preview-key (list "C-SPC" :debounce 0.5 'any))