From 4725867ec66b9a0f5e5ad95a1fd94c2f97fa2d2c Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Thu, 4 Aug 2022 16:00:30 -0400 Subject: fix: restore testing framework to actually work (#2070) after refactor to some new asynchronous items for finders, the tests stopped actually doing anything. now they do things again. --- lua/telescope/builtin/__files.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/telescope/builtin/__files.lua') diff --git a/lua/telescope/builtin/__files.lua b/lua/telescope/builtin/__files.lua index ce5527d..33b1c50 100644 --- a/lua/telescope/builtin/__files.lua +++ b/lua/telescope/builtin/__files.lua @@ -180,12 +180,12 @@ files.find_files = function(opts) return opts.find_command(opts) end return opts.find_command + elseif 1 == vim.fn.executable "rg" then + return { "rg", "--files" } elseif 1 == vim.fn.executable "fd" then return { "fd", "--type", "f" } elseif 1 == vim.fn.executable "fdfind" then return { "fdfind", "--type", "f" } - elseif 1 == vim.fn.executable "rg" then - return { "rg", "--files" } elseif 1 == vim.fn.executable "find" and vim.fn.has "win32" == 0 then return { "find", ".", "-type", "f" } elseif 1 == vim.fn.executable "where" then -- cgit v1.2.3