Use local variable fzf_lua when picking chezmoi files

This commit is contained in:
Thomas Vandal 2025-01-21 13:40:25 -05:00
parent 453b36c706
commit 7f8b1d295d

View file

@ -8,7 +8,7 @@ local pick_chezmoi = function()
fzf_lua.actions.vimcmd_entry("ChezmoiEdit", selected, { cwd = os.getenv("HOME") }) fzf_lua.actions.vimcmd_entry("ChezmoiEdit", selected, { cwd = os.getenv("HOME") })
end, end,
} }
require("fzf-lua").files({ cmd = "chezmoi managed --include=files,symlinks", actions = actions }) fzf_lua.files({ cmd = "chezmoi managed --include=files,symlinks", actions = actions })
elseif LazyVim.pick.picker.name == "snacks" then elseif LazyVim.pick.picker.name == "snacks" then
local results = require("chezmoi.commands").list({ local results = require("chezmoi.commands").list({
args = { args = {