From b5fd085af05862630168a84422b6a015ebb50873 Mon Sep 17 00:00:00 2001 From: Daanturo Date: Tue, 12 Jul 2022 18:04:43 +0700 Subject: [PATCH] tweak(default): consult-flymake in a branch of +default-diagnostics when available instead of plain flymake-show-diagnostics-buffer --- modules/config/default/autoload/default.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/config/default/autoload/default.el b/modules/config/default/autoload/default.el index 1f9d70cea..3d42a2292 100644 --- a/modules/config/default/autoload/default.el +++ b/modules/config/default/autoload/default.el @@ -62,7 +62,9 @@ current project. Otherwise list them for the current buffer" (bound-and-true-p flycheck-mode)) (flycheck-list-errors)) ((bound-and-true-p flymake-mode) - (flymake-show-diagnostics-buffer)) + (if (featurep! :completion vertico) + (consult-flymake) + (flymake-show-diagnostics-buffer))) (t (user-error "No diagnostics backend detected. Enable flycheck or \ flymake, or set up lsp-mode if applicable (see :lang lsp)"))))