mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Update dashboard pickers and format
This commit is contained in:
parent
bab12034b4
commit
3e997661b8
1 changed files with 12 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue