\# 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.
63 lines
1.0 KiB
Lua
63 lines
1.0 KiB
Lua
---@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"
|
|
}
|
|
}
|
|
}
|
|
}
|