diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-22 09:58:08 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-22 09:58:08 -0400 |
| commit | 025485fa1fc6a7f960764233d1d19be411d093c3 (patch) | |
| tree | 1323250b5faa15453a3f06b181ac71f8bc430af6 /lua | |
| parent | 5c7b12cc0117f90d61d618795403acfc45a1d961 (diff) | |
wip: Add ability to search for word match w/ rg
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua index 43aa3c9..d1a8f08 100644 --- a/lua/telescope/builtin.lua +++ b/lua/telescope/builtin.lua @@ -345,11 +345,12 @@ builtin.grep_string = function(opts) local search = opts.search or vim.fn.expand("<cword>") opts.entry_maker = opts.entry_maker or make_entry.gen_from_vimgrep(opts) + opts.word_match = opts.word_match or '' pickers.new(opts, { prompt = 'Find Word', finder = finders.new_oneshot_job( - flatten { conf.vimgrep_arguments, search}, + flatten { conf.vimgrep_arguments, opts.word_match, search}, opts ), previewer = previewers.vimgrep.new(opts), |
