mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 12:12:13 +02:00
initial commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
return {
|
||||
"goolord/alpha-nvim",
|
||||
cmd = "Alpha",
|
||||
opts = function()
|
||||
local dashboard = require "alpha.themes.dashboard"
|
||||
dashboard.section.header.val = {
|
||||
" █████ ███████ ████████ ██████ ██████",
|
||||
"██ ██ ██ ██ ██ ██ ██ ██",
|
||||
"███████ ███████ ██ ██████ ██ ██",
|
||||
"██ ██ ██ ██ ██ ██ ██ ██",
|
||||
"██ ██ ███████ ██ ██ ██ ██████",
|
||||
" ",
|
||||
" ███ ██ ██ ██ ██ ███ ███",
|
||||
" ████ ██ ██ ██ ██ ████ ████",
|
||||
" ██ ██ ██ ██ ██ ██ ██ ████ ██",
|
||||
" ██ ██ ██ ██ ██ ██ ██ ██ ██",
|
||||
" ██ ████ ████ ██ ██ ██",
|
||||
}
|
||||
dashboard.section.header.opts.hl = "DashboardHeader"
|
||||
|
||||
local button = require("astronvim.utils").alpha_button
|
||||
dashboard.section.buttons.val = {
|
||||
button("LDR n", " New File "),
|
||||
button("LDR f f", " Find File "),
|
||||
button("LDR f o", " Recents "),
|
||||
button("LDR f w", " Find Word "),
|
||||
button("LDR f '", " Bookmarks "),
|
||||
button("LDR S l", " Last Session "),
|
||||
}
|
||||
|
||||
dashboard.config.layout[1].val = vim.fn.max { 2, vim.fn.floor(vim.fn.winheight(0) * 0.2) }
|
||||
dashboard.config.layout[3].val = 5
|
||||
dashboard.config.opts.noautocmd = true
|
||||
return dashboard
|
||||
end,
|
||||
config = require "plugins.configs.alpha",
|
||||
}
|
||||
Reference in New Issue
Block a user