Skip to content

Commit

Permalink
feat: allow specifying the number of lines to show around each match
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Nov 7, 2024
1 parent 3e58f44 commit 4a449cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/blink-ripgrep/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
---@field prefix_min_len? number
---@field get_command? fun(context: blink.cmp.Context, prefix: string): string[]
---@field get_prefix? fun(context: blink.cmp.Context): string
---@field context_size? number "The number of lines to show around each match"

---@class blink-ripgrep.RgSource : blink.cmp.Source
---@field prefix_min_len number
Expand Down Expand Up @@ -32,6 +33,7 @@ function RgSource.new(opts)
"rg",
"--no-config",
"--json",
"--context=" .. (opts.context_size or 3),
"--word-regexp",
"--ignore-case",
"--",
Expand Down

0 comments on commit 4a449cb

Please sign in to comment.