feat(starter): added Lazy Extras to mini.starter

This commit is contained in:
Folke Lemaitre 2023-10-12 11:20:46 +02:00
parent b4ba5d881d
commit ce74e28464
3 changed files with 27 additions and 24 deletions

View file

@ -21,6 +21,7 @@ return {
]] ]]
dashboard.section.header.val = vim.split(logo, "\n") dashboard.section.header.val = vim.split(logo, "\n")
-- stylua: ignore
dashboard.section.buttons.val = { dashboard.section.buttons.val = {
dashboard.button("f", "" .. " Find file", "<cmd> Telescope find_files <cr>"), dashboard.button("f", "" .. " Find file", "<cmd> Telescope find_files <cr>"),
dashboard.button("n", "" .. " New file", "<cmd> ene <BAR> startinsert <cr>"), dashboard.button("n", "" .. " New file", "<cmd> ene <BAR> startinsert <cr>"),

View file

@ -33,6 +33,7 @@ return {
new_section("Recent files", "Telescope oldfiles", "Telescope"), new_section("Recent files", "Telescope oldfiles", "Telescope"),
new_section("Grep text", "Telescope live_grep", "Telescope"), new_section("Grep text", "Telescope live_grep", "Telescope"),
new_section("init.lua", "e $MYVIMRC", "Config"), new_section("init.lua", "e $MYVIMRC", "Config"),
new_section("Extras", "LazyExtras", "Config"),
new_section("Lazy", "Lazy", "Config"), new_section("Lazy", "Lazy", "Config"),
new_section("New file", "ene | startinsert", "Built-in"), new_section("New file", "ene | startinsert", "Built-in"),
new_section("Quit", "qa", "Built-in"), new_section("Quit", "qa", "Built-in"),

View file

@ -354,6 +354,7 @@ return {
}, },
config = { config = {
header = vim.split(logo, "\n"), header = vim.split(logo, "\n"),
-- stylua: ignore
center = { center = {
{ action = "Telescope find_files", desc = " Find file", icon = "", key = "f" }, { action = "Telescope find_files", desc = " Find file", icon = "", key = "f" },
{ action = "ene | startinsert", desc = " New file", icon = "", key = "n" }, { action = "ene | startinsert", desc = " New file", icon = "", key = "n" },