Update dashboard pickers and format

This commit is contained in:
Thomas Vandal 2025-11-16 14:11:33 -05:00
parent bab12034b4
commit 3e997661b8

View file

@ -13,12 +13,16 @@ return {
keys = { keys = {
{ {
"<leader>sz", "<leader>sz",
function() require("chezmoi.pick")[LazyVim.pick.picker.name]() end , function()
require("chezmoi.pick")[LazyVim.pick.picker.name]()
end,
desc = "Chezmoi", desc = "Chezmoi",
}, },
{ {
"<leader>sZ", "<leader>sZ",
function() require("chezmoi.pick")[LazyVim.pick.picker.name](vim.fn.stdpath("config")) end , function()
require("chezmoi.pick")[LazyVim.pick.picker.name](vim.fn.stdpath("config"))
end,
desc = "Chezmoi", desc = "Chezmoi",
}, },
}, },
@ -51,7 +55,9 @@ return {
optional = true, optional = true,
opts = function(_, opts) opts = function(_, opts)
local projects = { local projects = {
action = pick_chezmoi, action = function()
require("chezmoi.pick")[LazyVim.pick.picker.name]()
end,
desc = " Config", desc = " Config",
icon = "", icon = "",
key = "c", key = "c",
@ -78,7 +84,9 @@ return {
icon = "", icon = "",
key = "c", key = "c",
desc = "Config", desc = "Config",
action = pick_chezmoi, action = function()
require("chezmoi.pick")[LazyVim.pick.picker.name]()
end,
} }
local config_index local config_index
for i = #opts.dashboard.preset.keys, 1, -1 do for i = #opts.dashboard.preset.keys, 1, -1 do