summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin/files.lua
diff options
context:
space:
mode:
authorChase Colman <5411+chase@users.noreply.github.com>2021-09-12 17:37:04 +0800
committerGitHub <noreply@github.com>2021-09-12 11:37:04 +0200
commit978366ba46e2306b60ef64bd9e51a6c758fe48f0 (patch)
tree0b5f03e4d06aab94e71a720db7f733a28035ba21 /lua/telescope/builtin/files.lua
parentd022ccaf1137fda5b6c4f09e224fd187f54324ba (diff)
fix: add no more flags delimiter for ripgrep (#1217)
This matches the behavior of fzf, if a user needs to pass additional arguments they can use additional_args or change vimgrep_arguments.
Diffstat (limited to 'lua/telescope/builtin/files.lua')
-rw-r--r--lua/telescope/builtin/files.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/builtin/files.lua b/lua/telescope/builtin/files.lua
index 09a0bea..8b005bc 100644
--- a/lua/telescope/builtin/files.lua
+++ b/lua/telescope/builtin/files.lua
@@ -93,7 +93,7 @@ files.live_grep = function(opts)
search_list = filelist
end
- return flatten { vimgrep_arguments, additional_args, prompt, search_list }
+ return flatten { vimgrep_arguments, additional_args, "--", prompt, search_list }
end, opts.entry_maker or make_entry.gen_from_vimgrep(
opts
), opts.max_results, opts.cwd)
@@ -131,6 +131,7 @@ files.grep_string = function(opts)
vimgrep_arguments,
additional_args,
word_match,
+ "--",
search,
}