BIG CHANGES! Moving from Packer to Lazy package manager. 25% complete!

This commit is contained in:
Norm Rasmussen
2023-02-10 15:15:13 -05:00
parent 65504a2f47
commit 8632f79d4a
25 changed files with 570 additions and 2190 deletions

55
lua/plugins/alpha.lua Normal file
View File

@ -0,0 +1,55 @@
-----------------------------------------------------------
-- Dashboard configuration file
-----------------------------------------------------------
-- Plugin: alpha-nvim
-- url: https://github.com/goolord/alpha-nvim
-- For configuration examples see: https://github.com/goolord/alpha-nvim/discussions/16
return {
"goolord/alpha-nvim",
dependencies = {
"kyazdani42/nvim-web-devicons",
},
config = function ()
local alpha = require 'alpha'
local dashboard = require 'alpha.themes.dashboard'
-- Banner
dashboard.section.header.val = {
[[ ]],
[[ █████ █████ ██████ █████ ███ ]],
[[ ░░███ ░░███ ░░██████ ░░███ ░███ ]],
[[ ░███ ░███ ██████ █████ ████ ░███░███ ░███ ██████ ████████ █████████████ ░███ ]],
[[ ░███████████ ███░░███░░███ ░███ ░███░░███░███ ███░░███░░███░░███░░███░░███░░██ ]],
[[ ░███░░░░░███ ░███████ ░███ ░███ ░███ ░░██████ ░███ ░███ ░███ ░░░ ░███ ░███ ░███░███ ]],
[[ ░███ ░███ ░███░░░ ░███ ░███ ░███ ░░█████ ░███ ░███ ░███ ░███ ░███ ░███░░░ ]],
[[ █████ █████░░██████ ░░███████ █████ ░░█████░░██████ █████ █████░███ ████████ ]],
[[ ░░░░░ ░░░░░ ░░░░░░ ░░░░░███ ░░░░░ ░░░░░ ░░░░░░ ░░░░░ ░░░░░ ░░░ ░░░░░░░░ ]],
[[ ███ ░███ ]],
[[ ░░██████ ]],
[[ ░░░░░░ ]],
}
-- Menu
dashboard.section.buttons.val = {
dashboard.button('e', ' New file', ':ene <BAR> startinsert<CR>'),
dashboard.button('f', ' Find file', ':Telescope file_browser<CR>'),
dashboard.button('s', '⋅ Find Word', ':Telescope live_grep<CR>'),
dashboard.button('u', ' Update plugins', ':PackerUpdate<CR>'),
dashboard.button('q', ' Quit', ':qa<CR>'),
}
local handle = io.popen('fortune')
-- Footer
local function footer()
local version = vim.version()
local print_version = "v" .. version.major .. '.' .. version.minor .. '.' .. version.patch
local datetime = os.date('%Y/%m/%d %H:%M:%S')
return print_version .. ' ' .. datetime
end
dashboard.section.footer.val = footer()
alpha.setup(dashboard.config)
end
}