refactor(snacks): move snacks specs to ui/util so that they show up in the generated docs

This commit is contained in:
Folke Lemaitre 2024-12-12 09:37:47 +01:00
parent 303980d267
commit ba632c500d
3 changed files with 51 additions and 42 deletions

View file

@ -265,7 +265,27 @@ return {
{ "MunifTanjim/nui.nvim", lazy = true },
{
"folke/snacks.nvim",
"snacks.nvim",
opts = {
indent = { enabled = true },
notifier = { enabled = true },
scope = { enabled = true },
scroll = { enabled = true },
statuscolumn = { enabled = false }, -- we set this in options.lua
toggle = { map = LazyVim.safe_keymap_set },
words = { enabled = true },
},
-- stylua: ignore
keys = {
{ "<leader>.", function() Snacks.scratch() end, desc = "Toggle Scratch Buffer" },
{ "<leader>S", function() Snacks.scratch.select() end, desc = "Select Scratch Buffer" },
{ "<leader>n", function() Snacks.notifier.show_history() end, desc = "Notification History" },
{ "<leader>un", function() Snacks.notifier.hide() end, desc = "Dismiss All Notifications" },
},
},
{
"snacks.nvim",
opts = {
dashboard = {
preset = {