feat(starter): added Lazy Extras to mini.starter
This commit is contained in:
@ -21,16 +21,17 @@ 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>"),
|
||||||
dashboard.button("r", " " .. " Recent files", "<cmd> Telescope oldfiles <cr>"),
|
dashboard.button("r", " " .. " Recent files", "<cmd> Telescope oldfiles <cr>"),
|
||||||
dashboard.button("g", " " .. " Find text", "<cmd> Telescope live_grep <cr>"),
|
dashboard.button("g", " " .. " Find text", "<cmd> Telescope live_grep <cr>"),
|
||||||
dashboard.button("c", " " .. " Config", "<cmd> e $MYVIMRC <cr>"),
|
dashboard.button("c", " " .. " Config", "<cmd> e $MYVIMRC <cr>"),
|
||||||
dashboard.button("s", " " .. " Restore Session", [[<cmd> lua require("persistence").load() <cr>]]),
|
dashboard.button("s", " " .. " Restore Session", [[<cmd> lua require("persistence").load() <cr>]]),
|
||||||
dashboard.button("e", " " .. " LazyExtras", "<cmd> LazyExtras <cr>"),
|
dashboard.button("e", " " .. " Lazy Extras", "<cmd> LazyExtras <cr>"),
|
||||||
dashboard.button("l", " " .. " Lazy", "<cmd> Lazy <cr>"),
|
dashboard.button("l", " " .. " Lazy", "<cmd> Lazy <cr>"),
|
||||||
dashboard.button("q", " " .. " Quit", "<cmd> qa <cr>"),
|
dashboard.button("q", " " .. " Quit", "<cmd> qa <cr>"),
|
||||||
}
|
}
|
||||||
for _, button in ipairs(dashboard.section.buttons.val) do
|
for _, button in ipairs(dashboard.section.buttons.val) do
|
||||||
button.opts.hl = "AlphaButtons"
|
button.opts.hl = "AlphaButtons"
|
||||||
|
@ -29,13 +29,14 @@ return {
|
|||||||
evaluate_single = true,
|
evaluate_single = true,
|
||||||
header = logo,
|
header = logo,
|
||||||
items = {
|
items = {
|
||||||
new_section("Find file", "Telescope find_files", "Telescope"),
|
new_section("Find file", "Telescope find_files", "Telescope"),
|
||||||
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("Lazy", "Lazy", "Config"),
|
new_section("Extras", "LazyExtras", "Config"),
|
||||||
new_section("New file", "ene | startinsert", "Built-in"),
|
new_section("Lazy", "Lazy", "Config"),
|
||||||
new_section("Quit", "qa", "Built-in"),
|
new_section("New file", "ene | startinsert", "Built-in"),
|
||||||
|
new_section("Quit", "qa", "Built-in"),
|
||||||
new_section("Session restore", [[lua require("persistence").load()]], "Session"),
|
new_section("Session restore", [[lua require("persistence").load()]], "Session"),
|
||||||
},
|
},
|
||||||
content_hooks = {
|
content_hooks = {
|
||||||
|
@ -126,7 +126,7 @@ return {
|
|||||||
options = {
|
options = {
|
||||||
theme = "auto",
|
theme = "auto",
|
||||||
globalstatus = true,
|
globalstatus = true,
|
||||||
disabled_filetypes = { statusline = { "dashboard", "alpha", "starter"} },
|
disabled_filetypes = { statusline = { "dashboard", "alpha", "starter" } },
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { "mode" },
|
lualine_a = { "mode" },
|
||||||
@ -354,16 +354,17 @@ 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" },
|
||||||
{ action = "Telescope oldfiles", desc = " Recent files", icon = " ", key = "r" },
|
{ action = "Telescope oldfiles", desc = " Recent files", icon = " ", key = "r" },
|
||||||
{ action = "Telescope live_grep", desc = " Find text", icon = " ", key = "g" },
|
{ action = "Telescope live_grep", desc = " Find text", icon = " ", key = "g" },
|
||||||
{ action = "e $MYVIMRC", desc = " Config", icon = " ", key = "c" },
|
{ action = "e $MYVIMRC", desc = " Config", icon = " ", key = "c" },
|
||||||
{ action = 'lua require("persistence").load()', desc = " Restore Session", icon = " ", key = "s" },
|
{ action = 'lua require("persistence").load()', desc = " Restore Session", icon = " ", key = "s" },
|
||||||
{ action = "LazyExtras", desc = " LazyExtras", icon = " ", key = "e" },
|
{ action = "LazyExtras", desc = " Lazy Extras", icon = " ", key = "e" },
|
||||||
{ action = "Lazy", desc = " Lazy", icon = " ", key = "l" },
|
{ action = "Lazy", desc = " Lazy", icon = " ", key = "l" },
|
||||||
{ action = "qa", desc = " Quit", icon = " ", key = "q" },
|
{ action = "qa", desc = " Quit", icon = " ", key = "q" },
|
||||||
},
|
},
|
||||||
footer = function()
|
footer = function()
|
||||||
local stats = require("lazy").stats()
|
local stats = require("lazy").stats()
|
||||||
|
Reference in New Issue
Block a user