wip
This commit is contained in:
parent
bcdd3cdbd7
commit
ac80409bb9
10 changed files with 292 additions and 138 deletions
|
@ -12,23 +12,26 @@ return {
|
|||
---@class snacks.animate.Config
|
||||
---@field easing? snacks.animate.easing|snacks.animate.easing.Fn
|
||||
animate = {
|
||||
enabled = true,
|
||||
enabled = false,
|
||||
---@type snacks.animate.Duration|number
|
||||
duration = 4, -- ms per step
|
||||
|
||||
easing = "linear",
|
||||
fps = 60, -- frames per second. Global setting for all animations
|
||||
fps = 90, -- frames per second. Global setting for all animations
|
||||
},
|
||||
notifier = { enabled = true },
|
||||
indent = { enabled = true },
|
||||
toggle = { enabled = true },
|
||||
scroll = { enabled = true },
|
||||
---@class snacks.dashboard.Config
|
||||
---@field enabled? boolean
|
||||
---@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 = {
|
||||
row = nil,
|
||||
col = nil,
|
||||
pane_gap = 2,
|
||||
enabled = true,
|
||||
-- example = "pokemon",
|
||||
sections = {
|
||||
{ section = "header" },
|
||||
{
|
||||
|
@ -378,6 +381,22 @@ return {
|
|||
})
|
||||
end,
|
||||
dependencies = {
|
||||
{
|
||||
"RileyGabrielson/inspire.nvim",
|
||||
config = function()
|
||||
require("inspire").setup({
|
||||
-- 'daily' or 'random'
|
||||
mode = "daily",
|
||||
|
||||
-- Override the default quotes
|
||||
quotes = {
|
||||
{ text = "My First Custom Quote", author = "Me" },
|
||||
{ text = "My Second Custom Quote", author = "Myself" },
|
||||
{ text = "My Third Custom Quote", author = "and I" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/persistence.nvim",
|
||||
event = "BufReadPre",
|
||||
|
@ -388,7 +407,7 @@ return {
|
|||
-- { "<leader>ql", function() require("persistence").load({ last = true }) end, desc = "Restore Last Session" },
|
||||
-- { "<leader>qd", function() require("persistence").stop() end, desc = "Don't Save Current Session" },
|
||||
{ "<leader>db", "<cmd>:Dashboard<CR>", desc = "Dashboard"},
|
||||
{ "<leader>dq", function() require("inspire").show_quote() end, desc = "Show Inspire Quote"},
|
||||
{ "<leader>dq", function() require("inspire").show_quote() end, desc = "Show Inspire Quote"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue