Getting Snacks file picker to use fd
#1034
Closed
shamindras
started this conversation in
General
Replies: 1 comment
-
I just realized that I needed to call the function correctly with the keymap, so changed to map_key('<leader>ff', function()
-- M.with_ivy_layout(Snacks.file.picker) -- Old incorrect version not referencing the custom fd arguments
M.find_files_with_fd() -- correct fd args passed to the file picker
end, { desc = '[f]ind [f]iles' }) The code above should hopefully help others pass |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for making this wonderful set of plugins!
I have the following current snacks picker setup:
Picker Setup Code
With this init.lua file
Init Lua Configuration
I can confirm that running
at the command line, does ignore
submods/
as intended withfd
.Here the smart picker does indeed seem to use the
fd_args
specified, and ignores for example the submods directory. But the file picker seems to include thesubmods/
directory. Is there any way to pass thefd_args
to the file picker?Beta Was this translation helpful? Give feedback.
All reactions