72 lines
1.1 KiB
Lua
72 lines
1.1 KiB
Lua
return {
|
|
"folke/snacks.nvim",
|
|
priority = 1000,
|
|
lazy = false,
|
|
---@type snacks.Config
|
|
opts = {
|
|
indent = {
|
|
enabled = true,
|
|
char = "|",
|
|
},
|
|
input = {
|
|
enabled = true,
|
|
},
|
|
notifier = {
|
|
enabled = true,
|
|
},
|
|
git = {
|
|
enabled = true,
|
|
},
|
|
bigfile = { enabled = true },
|
|
dashboard = { enabled = true },
|
|
quickfile = { enabled = true },
|
|
scroll = { enabled = true },
|
|
statuscolumn = { enabled = true },
|
|
words = { enabled = false },
|
|
},
|
|
keys = {
|
|
{
|
|
"<leader>ns",
|
|
function()
|
|
Snacks.notifier.show_history()
|
|
end,
|
|
desc = "Notification History",
|
|
},
|
|
{
|
|
"<leader>nh",
|
|
function()
|
|
Snacks.notifier.hide()
|
|
end,
|
|
desc = "Dismiss All Notifications",
|
|
},
|
|
{
|
|
"<leader>gb",
|
|
function()
|
|
Snacks.git.blame_line()
|
|
end,
|
|
desc = "Git Blame Line",
|
|
},
|
|
{
|
|
"<leader>gf",
|
|
function()
|
|
Snacks.lazygit.log_file()
|
|
end,
|
|
desc = "Lazygit Current File History",
|
|
},
|
|
{
|
|
"<leader>gg",
|
|
function()
|
|
Snacks.lazygit()
|
|
end,
|
|
desc = "Lazygit",
|
|
},
|
|
{
|
|
"<leader>gl",
|
|
function()
|
|
Snacks.lazygit.log()
|
|
end,
|
|
desc = "Lazygit Log (cwd)",
|
|
},
|
|
},
|
|
}
|