AutoYADM commit: 2024-12-04 19:05:03

This commit is contained in:
Daniel Fichtinger 2024-12-04 19:05:03 -05:00
parent d8ae0fe145
commit 45f09de626

View file

@ -1,9 +1,12 @@
local function gen_header() local function gen_header()
-- local h = vim.fn.system("fortune issa-haiku") -- local h = vim.fn.system("fortune issa-haiku")
local h = vim.fn.system("~/dev/pyku/pyku.py --tree") local h = vim.fn.system("~/dev/pyku/pyku.py --tree")
h = h .. vim.fn.system("fortune issa-haiku") -- h = h .. vim.fn.system("fortune issa-haiku")
return h return h
end end
local function get_footer()
return vim.fn.system("fortune issa-haiku")
end
return { return {
"folke/snacks.nvim", "folke/snacks.nvim",
opts = { opts = {
@ -49,24 +52,25 @@ return {
-- { icon = " ", key = "q", desc = "Quit", action = ":qa" }, -- { icon = " ", key = "q", desc = "Quit", action = ":qa" },
}, },
-- Used by the `header` section -- Used by the `header` section
header = [[ -- header = [[
_.oo. -- _.oo.
_.u[[/;:,. .odMMMMMM' -- _.u[[/;:,. .odMMMMMM'
.o888UU[[[/;:-. .o@P^ MMM^ -- .o888UU[[[/;:-. .o@P^ MMM^
oN88888UU[[[/;::-. dP^ -- oN88888UU[[[/;::-. dP^
dNMMNN888UU[[[/;:--. .o@P^ -- dNMMNN888UU[[[/;:--. .o@P^
,MMMMMMN888UU[[/;::-. o@^ -- ,MMMMMMN888UU[[/;::-. o@^
NNMMMNN888UU[[[/~.o@P^ -- NNMMMNN888UU[[[/~.o@P^
888888888UU[[[/o@^-.. -- 888888888UU[[[/o@^-..
oI8888UU[[[/o@P^:--.. -- oI8888UU[[[/o@P^:--..
.@^ YUU[[[/o@^;::---.. -- .@^ YUU[[[/o@^;::---..
oMP ^/o@P^;:::---.. -- oMP ^/o@P^;:::---..
.dMMM .o@^ ^;::---... -- .dMMM .o@^ ^;::---...
dMMMMMMM@^` `^^^^ -- dMMMMMMM@^` `^^^^
YMMMUP^ -- YMMMUP^
^^ -- ^^
]], -- ]],
header = gen_header(), header = gen_header(),
footer = get_footer(),
}, },
-- item field formatters -- item field formatters
formats = { formats = {
@ -96,6 +100,7 @@ YMMMUP^
}, },
sections = { sections = {
{ section = "header" }, { section = "header" },
{ section = "footer" },
{ {
-- pane = 2, -- pane = 2,
section = "terminal", section = "terminal",
@ -103,8 +108,8 @@ YMMMUP^
-- hl = "header", -- hl = "header",
-- height = 30, -- height = 30,
random = 10, random = 10,
-- indent = 11, indent = 11,
padding = 1, -- padding = 1,
}, },
-- { section = "keys", gap = 1, padding = 1 }, -- { section = "keys", gap = 1, padding = 1 },
{ section = "startup" }, { section = "startup" },