Nix hm #1
1 changed files with 68 additions and 0 deletions
68
nvim/lua/plugs/snacks.lua
Normal file
68
nvim/lua/plugs/snacks.lua
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
return {
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
priority = 1000,
|
||||||
|
lazy = false,
|
||||||
|
opts = {
|
||||||
|
gitbrowse = {
|
||||||
|
enabled = true,
|
||||||
|
what = "repo",
|
||||||
|
},
|
||||||
|
picker = { enabled = true, },
|
||||||
|
dashboard = { enabled = true, },
|
||||||
|
debug = { enabled = true, },
|
||||||
|
indent = {
|
||||||
|
enabled = true,
|
||||||
|
animate = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
input = { enabled = true, },
|
||||||
|
notifier = { enabled = true, },
|
||||||
|
quickfile = { enabled = true, },
|
||||||
|
scroll = {
|
||||||
|
enabled = true,
|
||||||
|
animate = {
|
||||||
|
duration = { step = 7, total = 250 },
|
||||||
|
easing = "outCirc",
|
||||||
|
},
|
||||||
|
animate_repeat = {
|
||||||
|
delay = 100,
|
||||||
|
duration = { step = 3, total = 50 },
|
||||||
|
easing = "outCirc",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
words = {
|
||||||
|
enabled = true,
|
||||||
|
debounce = 100,
|
||||||
|
},
|
||||||
|
zen = {
|
||||||
|
enabled = true,
|
||||||
|
toggles = { dim = false, }
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ "gB", function() Snacks.gitbrowse() end, },
|
||||||
|
|
||||||
|
{ "<leader>z", function() Snacks.zen() end, },
|
||||||
|
|
||||||
|
{ "<leader>to", function() Snacks.picker.smart() end, },
|
||||||
|
{ "<leader>ta", function() Snacks.picker.grep() end, },
|
||||||
|
{ "<leader>tg", function() Snacks.picker.git_log_file() end, },
|
||||||
|
{ "<leader>ts", function() Snacks.picker.lsp_workspace_symbols() end, },
|
||||||
|
{ "<leader>tn", function() Snacks.picker.notifications() end },
|
||||||
|
},
|
||||||
|
init = function()
|
||||||
|
vim.api.nvim_create_autocmd("User", {
|
||||||
|
pattern = "VeryLazy",
|
||||||
|
callback = function()
|
||||||
|
_G.inspect = function(...)
|
||||||
|
Snacks.debug.inspect(...)
|
||||||
|
end
|
||||||
|
_G.backtrace = function()
|
||||||
|
Snacks.debug.backtrace()
|
||||||
|
end
|
||||||
|
vim.print = _G.inspect
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue