- dashboard.section.header.val = vim.split(logo, "\n")
- dashboard.section.buttons.val = {
- dashboard.button("f", " " .. " Find file", ":Telescope find_files <CR>"),
- dashboard.button("n", " " .. " New file", ":ene <BAR> startinsert <CR>"),
- dashboard.button("r", " " .. " Recent files", ":Telescope oldfiles <CR>"),
- dashboard.button("g", " " .. " Find text", ":Telescope live_grep <CR>"),
- dashboard.button("c", " " .. " Config", ":e $MYVIMRC <CR>"),
- dashboard.button("s", " " .. " Restore Session", [[:lua require("persistence").load() <cr>]]),
- dashboard.button("l", " " .. " Lazy", ":Lazy<CR>"),
- dashboard.button("q", " " .. " Quit", ":qa<CR>"),
+ logo = string.rep("\n", 8) .. logo .. "\n\n"
+
+ local opts = {
+ theme = "doom",
+ hide = {
+ -- this is taken care of by lualine
+ -- enabling this messes up the actual laststatus setting after loading a file
+ statusline = false,
+ },
+ config = {
+ header = vim.split(logo, "\n"),
+ -- stylua: ignore
+ center = {
+ { action = [[lua require('orgmode').action('agenda.agenda')]], desc = " View Agenda", icon = " ", key = "a" },
+ { 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 = [[lua require("lazyvim.util").telescope.config_files()()]], desc = " Config", icon = " ", key = "c" },
+ { action = 'lua require("persistence").load()', desc = " Restore Session", icon = " ", key = "s" },
+ { action = "LazyExtras", desc = " Lazy Extras", icon = " ", key = "x" },
+ { action = "Lazy", desc = " Lazy", icon = " ", key = "l" },
+ },
+ footer = function()
+ local stats = require("lazy").stats()
+ local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
+ return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
+ end,
+ },