diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-01-12 17:20:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-12 17:20:02 +0100 |
| commit | 6461b074544884ae90a485dfc73b80f305fa2664 (patch) | |
| tree | 3a033ed59f6f3c48c9e1039812c8c153d0ccdc5b /lua | |
| parent | 95264ada7922318f723b74457f3507a9c535ecb4 (diff) | |
fix #385 (#422)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin/files.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/builtin/files.lua b/lua/telescope/builtin/files.lua index 9d26a4a..58635df 100644 --- a/lua/telescope/builtin/files.lua +++ b/lua/telescope/builtin/files.lua @@ -36,7 +36,7 @@ files.live_grep = function(opts) prompt = escape_chars(prompt) - return flatten { conf.vimgrep_arguments, prompt } + return flatten { conf.vimgrep_arguments, prompt, '.' } end, opts.entry_maker or make_entry.gen_from_vimgrep(opts), opts.max_results, @@ -65,7 +65,7 @@ files.grep_string = function(opts) pickers.new(opts, { prompt_title = 'Find Word', finder = finders.new_oneshot_job( - flatten { conf.vimgrep_arguments, opts.word_match, search}, + flatten { conf.vimgrep_arguments, opts.word_match, search, '.' }, opts ), previewer = conf.grep_previewer(opts), |
