make nvim dashboard slimmer
This commit is contained in:
parent
8e3194e004
commit
b450812719
|
@ -16,7 +16,7 @@ require("lazy").setup({
|
||||||
spec = {
|
spec = {
|
||||||
{
|
{
|
||||||
"LazyVim/LazyVim",
|
"LazyVim/LazyVim",
|
||||||
import = "lazyvim.plugins"
|
import = "lazyvim.plugins",
|
||||||
},
|
},
|
||||||
{ import = "lazyvim.plugins.extras.coding.yanky" },
|
{ import = "lazyvim.plugins.extras.coding.yanky" },
|
||||||
{ import = "lazyvim.plugins.extras.coding.copilot" },
|
{ import = "lazyvim.plugins.extras.coding.copilot" },
|
||||||
|
|
|
@ -80,30 +80,30 @@ M.banners = {
|
||||||
|
|
||||||
---@type Array<table>
|
---@type Array<table>
|
||||||
M.buttons = {
|
M.buttons = {
|
||||||
|
-- {
|
||||||
|
-- action = LazyVim.telescope("files"),
|
||||||
|
-- desc = " Find File" .. string.rep(" ", 33),
|
||||||
|
-- icon = " ",
|
||||||
|
-- key = "f",
|
||||||
|
-- },
|
||||||
{
|
{
|
||||||
action = LazyVim.telescope("files"),
|
action = "enew",
|
||||||
desc = " Find File" .. string.rep(" ", 33),
|
|
||||||
icon = " ",
|
|
||||||
key = "f",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
action = "ene | startinsert",
|
|
||||||
desc = " New File" .. string.rep(" ", 34),
|
desc = " New File" .. string.rep(" ", 34),
|
||||||
icon = " ",
|
icon = " ",
|
||||||
key = "n",
|
key = "n",
|
||||||
},
|
},
|
||||||
{
|
-- {
|
||||||
action = "Telescope live_grep",
|
-- action = "Telescope live_grep",
|
||||||
desc = " Find Text" .. string.rep(" ", 33),
|
-- desc = " Find Text" .. string.rep(" ", 33),
|
||||||
icon = " ",
|
-- icon = " ",
|
||||||
key = "g",
|
-- key = "g",
|
||||||
},
|
-- },
|
||||||
{
|
-- {
|
||||||
action = "TodoTelescope",
|
-- action = "TodoTelescope",
|
||||||
desc = " Find Todo" .. string.rep(" ", 33),
|
-- desc = " Find Todo" .. string.rep(" ", 33),
|
||||||
icon = " ",
|
-- icon = " ",
|
||||||
key = "t",
|
-- key = "t",
|
||||||
},
|
-- },
|
||||||
{
|
{
|
||||||
action = 'lua require("persistence").load()',
|
action = 'lua require("persistence").load()',
|
||||||
desc = " Restore Session" .. string.rep(" ", 27),
|
desc = " Restore Session" .. string.rep(" ", 27),
|
||||||
|
|
|
@ -29,7 +29,7 @@ return {
|
||||||
button.key_format = " %s"
|
button.key_format = " %s"
|
||||||
end
|
end
|
||||||
math.randomseed(os.time())
|
math.randomseed(os.time())
|
||||||
local banner = "\n\n" .. banners[math.random(#banners)] .. "\n\n"
|
local banner = "\n" .. banners[math.random(#banners)] .. "\n"
|
||||||
opts.config.header = vim.split(banner, "\n")
|
opts.config.header = vim.split(banner, "\n")
|
||||||
opts.config.center = center
|
opts.config.center = center
|
||||||
opts.config.footer = function()
|
opts.config.footer = function()
|
||||||
|
|
Loading…
Reference in New Issue