Skip to content

Commit db6ffa6

Browse files
committed
fix(cmp): reduce blink-ripgrep freeze in complex directories
- Increase prefix_min_len from 2 to 3 to reduce trigger frequency - Move context_size to correct backend scope and set to 0 - Add --max-count=5 to limit rg output per file Fixes #1574
1 parent 68ac371 commit db6ffa6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lua/modules/configs/completion/blink.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,13 @@ local opts = {
8181
module = "blink-ripgrep",
8282
name = "Ripgrep",
8383
opts = {
84-
prefix_min_len = 2,
84+
prefix_min_len = 3,
8585
backend = {
8686
use = "ripgrep",
87+
context_size = 0,
8788
ripgrep = {
88-
context_size = 5,
8989
max_filesize = "1M",
90+
additional_rg_options = { "--max-count=5" },
9091
},
9192
},
9293
},

0 commit comments

Comments
 (0)