nvim-snappy/lua/plugins/snacks.lua

77 lines
1.3 KiB
Lua
Raw Normal View History

2025-02-12 11:49:02 +01:00
return {
'folke/snacks.nvim',
commit = 'b773368f8aa6e84a68e979f0e335d23de71f405a',
2025-02-12 11:49:02 +01:00
lazy = false,
priority = 1000,
keys = {
{
'<c-w>d',
function()
require('snacks').bufdelete()
end,
desc = 'Delete Current Buffer',
2025-02-12 11:49:02 +01:00
},
-- UX
--- <leader>u
{
'<leader>ud',
function()
require('snacks').dim()
end,
desc = '[U]I [D]imming',
2025-02-12 11:49:02 +01:00
},
{
'<leader>us',
function()
require('snacks').dim.disable()
end,
desc = 'Disable [U]I Dimming',
2025-02-12 11:49:02 +01:00
},
{
'<leader>uz',
function()
require('snacks').zen()
end,
desc = '[U]I [Z]en Mode',
2025-02-12 11:49:02 +01:00
},
},
opts = {
-- Big Files: Disable LSPs for Very Big Files
bigfile = {},
-- Dashboard: Pretty Startup
dashboard = {},
-- Dim: Focus on the Active Scope
dim = {},
-- Indent: Indentation Guides
indent = {
animate = {
enabled = false,
},
2025-02-12 11:49:02 +01:00
},
-- Input: Better vim.ui.input
input = { enabled = true },
-- TODO: git (for the blame line)
-- TODO: gitbrowse
-- TODO: lazygit
-- Notifier: Prettier notifications
--notifier = { enabled = true },
-- Quickfile: Load files first (aka fast) when doing 'nvim file.txt'
quickfile = { enabled = true },
-- TODO: 'rename' w/nvim-tree integration
-- "Zen Mode"
zen = { enabled = true },
},
}