update alpha nvim/lvim

This commit is contained in:
Daylin Morgan 2022-06-27 08:59:23 -05:00
parent 710a4a5530
commit a88528ae85

View file

@ -7,7 +7,6 @@ lvim.plugins = {
'catppuccin/nvim', 'catppuccin/nvim',
as = 'catppuccin' as = 'catppuccin'
}, },
-- { 'axelf4/vim-strip-trailing-whitespace' },
{ 'NoahTheDuke/vim-just' }, { 'NoahTheDuke/vim-just' },
{ 'ggandor/lightspeed.nvim' }, { 'ggandor/lightspeed.nvim' },
{ 'elkowar/yuck.vim' }, { 'elkowar/yuck.vim' },
@ -44,6 +43,26 @@ lvim.plugins = {
lvim.builtin.notify.active = true lvim.builtin.notify.active = true
lvim.builtin.terminal.active = true lvim.builtin.terminal.active = true
local function pick_color()
local colors = { "String", "Identifier", "Keyword", "Number", "Constant" }
return colors[math.random(#colors)]
end
local function myfooter(lvim_version)
-- local plugins = #vim.tbl_keys(packer_plugins) needs to be in config of packer table...
local v = vim.version()
local datetime = os.date " %Y.%m.%d  %H:%M:%S"
return string.format(" %s  v%s.%s.%s %s",lvim_version, v.major, v.minor, v.patch, datetime)
end
local lvim_version = require("lvim.utils.git").get_lvim_version()
local hl = pick_color()
lvim.builtin.alpha.dashboard.section.header.opts.hl = hl
lvim.builtin.alpha.dashboard.section.footer.opts.hl = hl
lvim.builtin.alpha.dashboard.section.footer.val = myfooter(lvim_version)
lvim.builtin.alpha.dashboard.section.header.val = { lvim.builtin.alpha.dashboard.section.header.val = {
[[ _______________________________________ ]], [[ _______________________________________ ]],
@ -68,6 +87,9 @@ lvim.builtin.alpha.dashboard.section.header.val = {
} }
-- simpler header -- simpler header
--[[ --[[
@ -75,24 +97,3 @@ lvim.builtin.alpha.dashboard.section.header.val = {
]] -- ]] --
--[[
_______________________________________
|,---"-----------------------------"---,|
||___ 16 bit.................... ||
||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH ||
||=====):H c> lvim H ||
||====/ :H H ||
|| :H H ||
||PORTFO:H H ||
|| :HHHHHHHHHHHHHHHHHHHHHHHHHHH ||
||_____,_________________________,_____||
|)_____)-----.| /I\ATARI |.------(_____(|
//"""""""|_____|=----------=|______|"""""""\
// _| _| _| _| _| _| _| _| _| _| _| _| _| _| \
// ___| _| _| _| _| _| _| _| _| _| _| _| | | \
|/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \
/ __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \
/ _| _| _| _| ________________________| _| _| _| _| \
|------"--------------------------------------"-------|
`-----------------------------------------------------'
]] --