diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-01-12 22:26:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-12 22:26:12 +0100 |
| commit | 57012550977679925176819345adc4d0dce85a00 (patch) | |
| tree | e6a61bb575d4a62be0bad7f89bbde9fca9332411 /lua | |
| parent | 6461b074544884ae90a485dfc73b80f305fa2664 (diff) | |
fix #426 (#427)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin/files.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/telescope/builtin/files.lua b/lua/telescope/builtin/files.lua index 58635df..18fa0d9 100644 --- a/lua/telescope/builtin/files.lua +++ b/lua/telescope/builtin/files.lua @@ -115,7 +115,10 @@ files.find_files = function(opts) end elseif 1 == vim.fn.executable("find") then find_command = { 'find', '.', '-type', 'f' } - if not hidden then vim.tbl_extend("error", find_command, {'-not', '-path', '*/.*'}) end + if not hidden then + table.insert(find_command, { '-not', '-path', "*/.*" }) + find_command = flatten(find_command) + end if search_dirs then table.remove(find_command, 2) for _,v in pairs(search_dirs) do |
