Squashed 'users/configs/system/nvim/nvim/' content from commit e088bce
git-subtree-dir: users/configs/system/nvim/nvim git-subtree-split: e088bce2bd90c0b5c35d13a8615a55455b96294d
This commit is contained in:
38
lua/plugins/alpha.lua
Normal file
38
lua/plugins/alpha.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
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
|
||||
local get_icon = require("astronvim.utils").get_icon
|
||||
dashboard.section.buttons.val = {
|
||||
button("LDR n ", get_icon("FileNew", 2, true) .. "New File "),
|
||||
button("LDR f f", get_icon("Search", 2, true) .. "Find File "),
|
||||
button("LDR f o", get_icon("DefaultFile", 2, true) .. "Recents "),
|
||||
button("LDR f w", get_icon("WordFile", 2, true) .. "Find Word "),
|
||||
button("LDR f '", get_icon("Bookmarks", 2, true) .. "Bookmarks "),
|
||||
button("LDR S l", get_icon("Refresh", 2, true) .. "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