refactor(chezmoi): remove unnecessary assignments in favor of defaults

This commit is contained in:
gogamid 2025-01-18 12:04:16 +01:00
parent 638e57399d
commit 66a6e053b9

View file

@ -32,12 +32,9 @@ local pick_chezmoi = function()
})
local items = {}
for i, czFile in ipairs(results) do
for _, czFile in ipairs(results) do
table.insert(items, {
idx = i,
score = i,
text = czFile,
name = czFile,
file = czFile,
})
end
@ -45,7 +42,6 @@ local pick_chezmoi = function()
---@type snacks.picker.Config
local opts = {
items = items,
format = "filename",
confirm = function(picker, item)
picker:close()
require("chezmoi.commands").edit({