Files
dotfiles/nvim/after/plugin/alpha.lua
2023-01-13 19:15:24 +01:00

30 lines
1.1 KiB
Lua

-- https://github.com/goolord/alpha-nvim
local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
dashboard.section.header.val = {
"",
"┌─╮╭─╮╭─╮▖ ▖▖▄▄▗▄ ",
"│ │├─┘│ │▝▖▞ ▌▌ ▌ ▌",
"╵ ╵╰─╯╰─╯ ▝ ▘▘ ▘ ▘",
}
dashboard.section.buttons.val = {
dashboard.button("e", " New File", ":ene <BAR> startinsert<CR>"),
dashboard.button("f", " Find Files", ":Telescope find_files<CR>"),
dashboard.button("p", " Find Project", ":Telescope projects<CR>"),
dashboard.button("r", " Recently Used Files", ":Telescope oldfiles<CR>"),
dashboard.button("t", " Find Text", ":Telescope grep_string<CR>"),
dashboard.button("u", " Update Plugins", ":Lazy sync<CR>"),
dashboard.button("m", " Mason (LSP, DAP, Linter, Formatter)", ":Mason<CR>"),
dashboard.button("q", " Quit Neovim", ":qa<CR>"),
dashboard.padding,
}
dashboard.section.header.opts.hl = "String"
dashboard.section.buttons.opts.hl = "Keyword"
dashboard.section.footer.opts.hl = "String"
dashboard.opts.opts.noautocmd = true
alpha.setup(dashboard.opts)