nix-infra/modules/home/nvim/lua/plugins/dashboard.lua

36 lines
2 KiB
Lua
Raw Permalink Normal View History

2024-03-24 18:02:32 +00:00
return {
"nvimdev/dashboard-nvim",
2024-03-24 18:02:34 +00:00
opts = function(_, opts)
2024-03-24 18:02:32 +00:00
local logo = [[
Nyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanya
]]
2024-03-24 18:02:32 +00:00
logo = string.rep("\n", 8) .. logo .. "\n\n"
2024-03-24 18:02:34 +00:00
opts.theme = "doom"
opts.hide = {
statusline = false,
tabline = true, -- hide the tabline
}
opts.config = {
header = vim.split(logo, "\n"),
-- stylua: ignore
2024-03-24 18:02:34 +00:00
center = {
{ action = "Telescope find_files", desc = " Find file", icon = "", key = "f" },
{ action = "ene | startinsert", desc = " New file", icon = "", key = "n" },
{ action = "Telescope oldfiles", desc = " Recent files", icon = "", key = "r" },
{ action = "Telescope live_grep", desc = " Find text", icon = "", key = "g" },
{ action = 'lua require("persistence").load()', desc = " Restore Session", icon = "", key = "s" },
{ action = "qa", desc = " Quit", icon = "", key = "q" },
},
footer = { "Meow!!!" }, --your footer
}
2024-03-24 18:02:32 +00:00
end,
}