mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
refactor(chezmoi): remove unnecessary assignments in favor of defaults
This commit is contained in:
parent
638e57399d
commit
66a6e053b9
1 changed files with 1 additions and 5 deletions
|
|
@ -32,12 +32,9 @@ local pick_chezmoi = function()
|
||||||
})
|
})
|
||||||
local items = {}
|
local items = {}
|
||||||
|
|
||||||
for i, czFile in ipairs(results) do
|
for _, czFile in ipairs(results) do
|
||||||
table.insert(items, {
|
table.insert(items, {
|
||||||
idx = i,
|
|
||||||
score = i,
|
|
||||||
text = czFile,
|
text = czFile,
|
||||||
name = czFile,
|
|
||||||
file = czFile,
|
file = czFile,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
@ -45,7 +42,6 @@ local pick_chezmoi = function()
|
||||||
---@type snacks.picker.Config
|
---@type snacks.picker.Config
|
||||||
local opts = {
|
local opts = {
|
||||||
items = items,
|
items = items,
|
||||||
format = "filename",
|
|
||||||
confirm = function(picker, item)
|
confirm = function(picker, item)
|
||||||
picker:close()
|
picker:close()
|
||||||
require("chezmoi.commands").edit({
|
require("chezmoi.commands").edit({
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue