Skip to content

Commit

Permalink
feat: the default context size is now 3 -> 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Nov 7, 2024
1 parent 5f98843 commit 47b47a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ return {
---@module "blink-ripgrep"
---@type blink-ripgrep.Options
opts = {
-- the minimum length of the query to start searching
-- the minimum length of the current word to start searching
-- (if the word is shorter than this, the search will not start)
prefix_min_len = 3,
-- The number of lines to show around each match in the preview window
context_size = 3,
context_size = 5,
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion lua/blink-ripgrep/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function RgSource.new(opts)
"rg",
"--no-config",
"--json",
"--context=" .. (opts.context_size or 3),
"--context=" .. (opts.context_size or 5),
"--word-regexp",
"--ignore-case",
"--",
Expand Down

0 comments on commit 47b47a0

Please sign in to comment.