AutoYADM commit: 2024-12-04 19:15:04

This commit is contained in:
Daniel Fichtinger 2024-12-04 19:15:04 -05:00
parent 6fa7c0646b
commit ef97a57d1a

View file

@ -1,12 +1,11 @@
local function gen_header() local function gen_header()
-- 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")
return h return h
end end
local function get_footer() local function get_haiku()
local h = vim.fn.system("fortune issa-haiku") -- local h = vim.fn.system("fortune issa-haiku")
return "test" local h = vim.fn.system("fortune -e -s")
return h
end end
return { return {
"folke/snacks.nvim", "folke/snacks.nvim",
@ -98,7 +97,8 @@ return {
end, end,
}, },
sections = { sections = {
{ section = "header" }, { section = "header", gap = 0, padding = 0 },
{ text = get_haiku(), align = "center", gap = 0, padding = 0 },
{ {
-- pane = 2, -- pane = 2,
section = "terminal", section = "terminal",
@ -107,10 +107,12 @@ return {
-- height = 30, -- height = 30,
random = 10, random = 10,
indent = 11, indent = 11,
gap = 0,
padding = 0,
-- padding = 1, -- padding = 1,
}, },
-- { section = "keys", gap = 1, padding = 1 }, -- { section = "keys", gap = 1, padding = 1 },
{ section = "startup" }, { section = "startup", gap = 0, padding = 0 },
-- { section = "footer" }, -- { section = "footer" },
}, },
}, },