AutoYADM commit: 2024-12-04 19:10:03
This commit is contained in:
parent
45f09de626
commit
6fa7c0646b
1 changed files with 6 additions and 7 deletions
|
@ -1,18 +1,16 @@
|
||||||
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()
|
local function get_footer()
|
||||||
return vim.fn.system("fortune issa-haiku")
|
local h = vim.fn.system("fortune issa-haiku")
|
||||||
|
return "test"
|
||||||
end
|
end
|
||||||
return {
|
return {
|
||||||
"folke/snacks.nvim",
|
"folke/snacks.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
---@class snacks.dashboard.Config
|
|
||||||
---@field sections snacks.dashboard.Section
|
|
||||||
---@field formats table<string, snacks.dashboard.Text|fun(item:snacks.dashboard.Item, ctx:snacks.dashboard.Format.ctx):snacks.dashboard.Text>
|
|
||||||
dashboard = {
|
dashboard = {
|
||||||
width = 60,
|
width = 60,
|
||||||
row = nil, -- dashboard position. nil for center
|
row = nil, -- dashboard position. nil for center
|
||||||
|
@ -70,7 +68,8 @@ return {
|
||||||
-- ^^
|
-- ^^
|
||||||
-- ]],
|
-- ]],
|
||||||
header = gen_header(),
|
header = gen_header(),
|
||||||
footer = get_footer(),
|
-- header = "test",
|
||||||
|
-- footer = "testing",
|
||||||
},
|
},
|
||||||
-- item field formatters
|
-- item field formatters
|
||||||
formats = {
|
formats = {
|
||||||
|
@ -100,7 +99,6 @@ return {
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
{ section = "header" },
|
{ section = "header" },
|
||||||
{ section = "footer" },
|
|
||||||
{
|
{
|
||||||
-- pane = 2,
|
-- pane = 2,
|
||||||
section = "terminal",
|
section = "terminal",
|
||||||
|
@ -113,6 +111,7 @@ return {
|
||||||
},
|
},
|
||||||
-- { section = "keys", gap = 1, padding = 1 },
|
-- { section = "keys", gap = 1, padding = 1 },
|
||||||
{ section = "startup" },
|
{ section = "startup" },
|
||||||
|
-- { section = "footer" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue