Skip to content

Commit

Permalink
Disable consult result grouping due to an issue in Selectrum
Browse files Browse the repository at this point in the history
Selectrum sometimes hides results due to an issue with dynamic
resizing. This happens when viewing consult results and there are more
results than what the minibuffer can display in one screen. See here
radian-software/selectrum#491.

One possible solution is to get rid of Selectrum, and use Vertico
instead. However, Selectrum has some additional features that Vertico
lacks (e.g. caching, integration with Prescient).

The solution that was chosen is to disable consult result grouping
until the original Selectrum issue is resolved.
  • Loading branch information
manzaltu committed May 5, 2023
1 parent ded42ed commit 4804ca6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ DIR must include a .project file to be considered a project."
;; Configure the narrowing key.
(setq consult-narrow-key ">")

;; Selectrum sometimes hides results due to an issue with dynamic resizing
;; Disable result grouping until the issue is resolved
;; See more here https://github.com/raxod502/selectrum/issues/491
(setq selectrum-group-format nil)

;; Use consult to select xref locations with preview
(setq xref-show-xrefs-function #'consult-xref
xref-show-definitions-function #'consult-xref)
Expand Down

0 comments on commit 4804ca6

Please sign in to comment.