dotfiles/home/private_dot_config/nvim/lua/plugins/ui.lua

36 lines
2.2 KiB
Lua
Raw Normal View History

2023-02-13 13:17:05 -06:00
return {
{
"goolord/alpha-nvim",
opts = function()
local dashboard = require("alpha.themes.dashboard")
local logo = [[
]]
dashboard.section.header.val = vim.split(logo, "\n")
math.randomseed(os.time())
local function pick_color()
local colors = { "String", "Identifier", "Keyword", "Number" }
return colors[math.random(#colors)]
end
dashboard.section.header.opts.hl = pick_color()
dashboard.opts.layout[1].val = 2
return dashboard
end,
},
}