mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
30 lines
1.3 KiB
Lua
30 lines
1.3 KiB
Lua
-- Dashboard
|
|
-- https://github.com/goolord/alpha-nvim
|
|
return {
|
|
"goolord/alpha-nvim",
|
|
opts = function(_, opts)
|
|
opts.section.header.val = {
|
|
" ▖ ",
|
|
"┌─╮╭─╮╭─╮▖ ▖▖▄▄▗▄ ",
|
|
"│ │├─┘│ │▝▖▞ ▌▌ ▌ ▌",
|
|
"╵ ╵╰─╯╰─╯ ▝ ▘▘ ▘ ▘",
|
|
}
|
|
opts.section.buttons.val = {
|
|
opts.button("f", " " .. " Find file", ":Telescope find_files <CR>"),
|
|
opts.button("n", " " .. " New file", ":ene <BAR> startinsert <CR>"),
|
|
opts.button("r", " " .. " Recent files", ":Telescope oldfiles <CR>"),
|
|
opts.button("g", " " .. " Find text", ":Telescope live_grep <CR>"),
|
|
opts.button("p", " " .. " Find Project", ":Telescope projects<CR>"),
|
|
opts.button("s", "勒" .. " Restore Session", [[:lua require("persistence").load() <cr>]]),
|
|
opts.button("l", "鈴" .. " Lazy (Plugins)", ":Lazy<CR>"),
|
|
opts.button("m", " " .. " Mason (LSP, DAP, Linter, Formatter)", ":Mason<CR>"),
|
|
opts.button("q", " " .. " Quit", ":qa<CR>"),
|
|
opts.padding,
|
|
}
|
|
opts.section.header.opts.hl = "String"
|
|
opts.section.buttons.opts.hl = "Keyword"
|
|
opts.section.footer.opts.hl = "String"
|
|
opts.opts.opts.noautocmd = true
|
|
end,
|
|
}
|