feat(snacks): Add snacks

\# TODO:
    - configure more of the things snacks offers
    - figure out how to make opening a project just open the directory
	- Then I can use my normal neo-tree method for choosing what to
	  edit.
	- Hopefully this is an option and not something that requires
	  modifying plugin code.
This commit is contained in:
Robert Morrison 2026-04-10 02:43:32 +01:00
parent 25baeeca01
commit e581acb652

View File

@ -0,0 +1,62 @@
---@module "lazy.nvim"
---@type LazySpec[]
return {
{
"folke/snacks.nvim",
priority = 1000,
lazy = false,
---@module "snacks"
---@type snacks.Config
opts = {
bufdelete = {
enabled = true
},
---@type snacks.dashboard.Config
dashboard =
{
sections = {
{ section = "header"},
{
icon = " ",
title = "keymaps",
section = "keys",
indent = 2,
padding = 1,
},
{
icon = " ",
title = "Recent Files",
section = "recent_files",
indent = 2,
padding = 1,
},
{
icon = " ",
title = "Projects",
section = "projects",
indent = 2,
padding = 1,
},
{ section = "startup"},
},
formats = {}
},
indent = {enabled = true},
rename = {enabled = true},
styles = {
notification ={
wo = { wrap = true }
}
}
},
keys = {
{"<leader>bd",
function ()
require("snacks").bufdelete()
end,
desc = "Delete current buffer",
mode = "n"
}
}
}
}