initial commit
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
return {
|
||||
"goolord/alpha-nvim",
|
||||
config = function ()
|
||||
local alpha = require'alpha'
|
||||
--local colours = require 'material.colors'
|
||||
vim.api.nvim_set_hl(0, "alphaheader", {fg = "#3661cf" })
|
||||
--vim.api.nvim_set_hl(0, "alphafooter", {fg = colours.main.darkpurple })
|
||||
local dashboard = require'alpha.themes.dashboard'
|
||||
dashboard.section.header.val = {
|
||||
[[ ░░░░░░░░░░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░░░░░░░░░░░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░░░░░░░░░▒▓▒░░░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░░░░░░░░░░▒██▓░░░░░░░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░░░░░░░░░▓████▓░░░░░░░░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░░░░░░░░░▒██████▓░░░░░░░░░░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░░░░░░░░▓████████▒░░░░░░░░░░░░░░░░░ ]],
|
||||
[[░░░░░░░░░░░░░░▒███████████▓░░░░░░░░░░░░░░░░░]],
|
||||
[[░░░░░░░░░░░░░▓██████████████▒░░░░░░░░░░░░░░░]],
|
||||
[[░░░░░░░░░░░░▓████████████████▓░░░░░░░░░░░░░░]],
|
||||
[[░░░░░░░░░░░▓███████████████▓▓██▒░░░░░░░░░░░░]],
|
||||
[[░░░░░░░░░░▒████████████████▓░▒██▒░░░░░░░░░░░]],
|
||||
[[░░░░░░░░░░▒███████████████▓▒░░▓█▓░░░░░░░░░░░]],
|
||||
[[ ░░░░░░░░░▒███████████████▓░░░▓█▓▒░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░░░▓████████████████████▓░░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░▒▓██████████████████▓░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░░▓████████████████▒░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░▒▓██████████▓▒░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░░░░░▒▒░░░░░░░░░░░░ ]],
|
||||
[[ ░░░░░░░░░░░░░░░░░░ ]],
|
||||
}
|
||||
dashboard.section.header.opts.hl = "alphaheader"
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button( "e", " new file" , ":ene <bar> startinsert <cr>"),
|
||||
dashboard.button("f", " search file in cwd", ":FzfLua files<cr>"),
|
||||
dashboard.button("-", " explore cwd", ":Oil --float<cr>"),
|
||||
dashboard.button("l", " Lazy settings", ":Lazy<cr>"),
|
||||
dashboard.button("g", " GIT", ":LazyGit<cr>"),
|
||||
dashboard.button( "q", " quit nvim" , ":qa<cr>"),
|
||||
}
|
||||
local handle = io.popen('fortune')
|
||||
local fortune = handle:read("*a")
|
||||
handle:close()
|
||||
dashboard.section.footer.val = {
|
||||
[["we define the boundaries of reality;]],
|
||||
[[they don't define us."]],
|
||||
[[ -Teferi]]
|
||||
}
|
||||
dashboard.section.footer.opts.hl = "alphafooter"
|
||||
dashboard.config.opts.noautocmd = true
|
||||
|
||||
vim.cmd[[autocmd user alphaready echo 'ready']]
|
||||
|
||||
alpha.setup(dashboard.config)
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user