From ad99e16f04438f09e5c4ed8cdae1d39879f063be Mon Sep 17 00:00:00 2001 From: robin Date: Sat, 20 Dec 2025 23:45:35 +0100 Subject: [PATCH] fix(builtins): fallback to `find` --- lua/artio/builtins.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/artio/builtins.lua b/lua/artio/builtins.lua index e35f1a8..6645e99 100644 --- a/lua/artio/builtins.lua +++ b/lua/artio/builtins.lua @@ -16,7 +16,8 @@ end local builtins = {} -local findprg = "fd -H -p -a -t f --color=never" +local findprg = vim.fn.executable("fd") == 1 and "fd -H -p -a -t f --color=never --" + or "find . -type f -iregex '.*$*.*'" ---@class artio.picker.files.Props : artio.Picker.config ---@field findprg? string -- 2.51.2