dotfiles/home/private_dot_config/lvim/lua/plugins.lua

100 lines
3.4 KiB
Lua
Raw Normal View History

2022-02-08 13:42:16 -06:00
local p = function(name) return string.format("require'config.%s'", name) end
2022-01-24 00:03:41 -06:00
-- extra plugins
lvim.plugins = {
2022-06-20 11:22:38 -05:00
{ 'chrisbra/Colorizer' },
{
'catppuccin/nvim',
as = 'catppuccin'
},
{ 'NoahTheDuke/vim-just' },
{ 'ggandor/lightspeed.nvim' },
{ 'elkowar/yuck.vim' },
{
'mickael-menu/zk-nvim',
config = function()
require("zk").setup({
-- can be "telescope", "fzf" or "select" (`vim.ui.select`)
-- it's recommended to use "telescope" or "fzf"
picker = "telescope",
lsp = {
-- `config` is passed to `vim.lsp.start_client(config)`
config = {
cmd = { "zk", "lsp" },
name = "zk",
-- on_attach = ...
-- etc, see `:h vim.lsp.start_client()`
},
2022-02-03 16:58:34 -06:00
2022-06-20 11:22:38 -05:00
-- automatically attach buffers in a zk notebook that match the given filetypes
auto_attach = {
enabled = true,
filetypes = { "markdown" },
2022-02-03 16:58:34 -06:00
},
2022-06-20 11:22:38 -05:00
},
})
end,
},
2022-01-24 00:03:41 -06:00
}
-- default plugins settings
2022-06-20 11:22:38 -05:00
-- lvim.builtin.nvimtree.setup.git.ignore = false
lvim.builtin.notify.active = true
lvim.builtin.terminal.active = true
2022-01-24 00:03:41 -06:00
2022-06-27 08:59:23 -05:00
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)
2022-01-24 00:03:41 -06:00
2022-06-20 11:22:38 -05:00
lvim.builtin.alpha.dashboard.section.header.val = {
[[ _______________________________________ ]],
[[ |,---"-----------------------------"---,| ]],
[[ ||___ 16 bit.................... || ]],
[[ ||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
[[ ||=====):H c> lvim H || ]],
[[ ||====/ :H ╦ ╦ ╦╔╗╔╔═╗╦═╗╦ ╦╦╔╦╗ H || ]],
[[ || :H ║ ║ ║║║║╠═╣╠╦╝╚╗╔╝║║║║ H || ]],
[[ ||PORTFO:H ╩═╝╚═╝╝╚╝╩ ╩╩╚═ ╚╝ ╩╩ ╩ H || ]],
[[ || :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
[[ ||_____,_________________________,_____|| ]],
[[ |)_____)-----.| /I\ATARI |.------(_____(| ]],
[[ //"""""""|_____|=----------=|______|"""""""\ ]],
[[ // _| _| _| _| _| _| _| _| _| _| _| _| _| _| \ ]],
[[ // ___| _| _| _| _| _| _| _| _| _| _| _| | | \ ]],
[[ |/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \ ]],
[[ / __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \ ]],
[[ / _| _| _| _| ________________________| _| _| _| _| \ ]],
[[|------"--------------------------------------"-------|]],
[[`-----------------------------------------------------']],
}
2022-01-24 00:03:41 -06:00
2022-06-27 08:59:23 -05:00
2022-01-24 00:03:41 -06:00
-- simpler header
--[[
2022-06-20 11:22:38 -05:00
]] --
2022-01-24 00:03:41 -06:00