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:
parent
25baeeca01
commit
e581acb652
62
lua/plugins/spec/snacks.lua
Normal file
62
lua/plugins/spec/snacks.lua
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user