dotfiles/home/private_dot_config/lvim/lua/plugins.lua
2022-10-26 13:45:11 -05:00

95 lines
3.2 KiB
Lua

local p = function(name) return string.format("require'config.%s'", name) end
-- extra plugins
lvim.plugins = {
{ 'chrisbra/Colorizer' },
{
'catppuccin/nvim',
as = 'catppuccin'
},
-- { 'Djancyp/better-comments.nvim',
-- config = function()
-- require('better-comment').Setup()
-- end
-- },
{ 'NoahTheDuke/vim-just' },
{ 'ggandor/lightspeed.nvim' },
{ 'elkowar/yuck.vim' },
{
'mickael-menu/zk-nvim',
config = p "zk";
},
{
"quarto-dev/quarto-vim",
requires = {
{ "vim-pandoc/vim-pandoc-syntax" },
},
ft = { "quarto" },
},
{ 'xiyaowong/nvim-transparent',
config = p 'nvim-transparent';
},
}
-- default plugins settings
-- lvim.builtin.nvimtree.setup.git.ignore = false
lvim.builtin.notify.active = true
lvim.builtin.terminal.active = true
lvim.builtin.telescope.pickers.find_files.find_command = {
"rg",
"--hidden",
"--files",
"--glob=!.git/",
}
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 = {
[[ _______________________________________ ]],
[[ |,---"-----------------------------"---,| ]],
[[ ||___ 16 bit.................... || ]],
[[ ||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
[[ ||=====):H c> lvim H || ]],
[[ ||====/ :H ╦ ╦ ╦╔╗╔╔═╗╦═╗╦ ╦╦╔╦╗ H || ]],
[[ || :H ║ ║ ║║║║╠═╣╠╦╝╚╗╔╝║║║║ H || ]],
[[ ||PORTFO:H ╩═╝╚═╝╝╚╝╩ ╩╩╚═ ╚╝ ╩╩ ╩ H || ]],
[[ || :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
[[ ||_____,_________________________,_____|| ]],
[[ |)_____)-----.| /I\ATARI |.------(_____(| ]],
[[ //"""""""|_____|=----------=|______|"""""""\ ]],
[[ // _| _| _| _| _| _| _| _| _| _| _| _| _| _| \ ]],
[[ // ___| _| _| _| _| _| _| _| _| _| _| _| | | \ ]],
[[ |/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \ ]],
[[ / __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \ ]],
[[ / _| _| _| _| ________________________| _| _| _| _| \ ]],
[[|------"--------------------------------------"-------|]],
[[`-----------------------------------------------------']],
}
-- simpler header
--[[
╦ ╦ ╦╔╗╔╔═╗╦═╗╦ ╦╦╔╦╗
║ ║ ║║║║╠═╣╠╦╝╚╗╔╝║║║║
╩═╝╚═╝╝╚╝╩ ╩╩╚═ ╚╝ ╩╩ ╩
]] --