formatting change

This commit is contained in:
Reathe 2026-02-23 15:31:44 +01:00
parent 289d3f99d2
commit 4891019be7
1 changed files with 17 additions and 51 deletions

View File

@ -27,108 +27,78 @@ return {
keys = { keys = {
{ {
'<leader>.', '<leader>.',
function() function() Snacks.scratch() end,
Snacks.scratch()
end,
desc = 'Toggle Scratch Buffer', desc = 'Toggle Scratch Buffer',
}, },
{ {
'<leader>S', '<leader>S',
function() function() Snacks.scratch.select() end,
Snacks.scratch.select()
end,
desc = 'Select Scratch Buffer', desc = 'Select Scratch Buffer',
}, },
{ {
'<leader>n', '<leader>n',
function() function() Snacks.notifier.show_history() end,
Snacks.notifier.show_history()
end,
desc = 'Notification History', desc = 'Notification History',
}, },
{ {
'<leader>bd', '<leader>bd',
function() function() Snacks.bufdelete() end,
Snacks.bufdelete()
end,
desc = 'Delete Buffer', desc = 'Delete Buffer',
}, },
{ {
'<leader>cR', '<leader>cR',
function() function() Snacks.rename.rename_file() end,
Snacks.rename.rename_file()
end,
desc = 'Rename File', desc = 'Rename File',
}, },
{ {
'<leader>gB', '<leader>gB',
function() function() Snacks.gitbrowse() end,
Snacks.gitbrowse()
end,
desc = 'Git Browse', desc = 'Git Browse',
}, },
{ {
'<leader>gb', '<leader>gb',
function() function() Snacks.git.blame_line() end,
Snacks.git.blame_line()
end,
desc = 'Git Blame Line', desc = 'Git Blame Line',
}, },
{ {
'<leader>gf', '<leader>gf',
function() function() Snacks.lazygit.log_file() end,
Snacks.lazygit.log_file()
end,
desc = 'Lazygit Current File History', desc = 'Lazygit Current File History',
}, },
{ {
'<leader>gg', '<leader>gg',
function() function() Snacks.lazygit() end,
Snacks.lazygit()
end,
desc = 'Lazygit', desc = 'Lazygit',
}, },
{ {
'<leader>gl', '<leader>gl',
function() function() Snacks.lazygit.log() end,
Snacks.lazygit.log()
end,
desc = 'Lazygit Log (cwd)', desc = 'Lazygit Log (cwd)',
}, },
{ {
'<leader>un', '<leader>un',
function() function() Snacks.notifier.hide() end,
Snacks.notifier.hide()
end,
desc = 'Dismiss All Notifications', desc = 'Dismiss All Notifications',
}, },
{ {
'<c-/>', '<c-/>',
function() function() Snacks.terminal() end,
Snacks.terminal()
end,
desc = 'Toggle Terminal', desc = 'Toggle Terminal',
}, },
{ {
'<c-_>', '<c-_>',
function() function() Snacks.terminal() end,
Snacks.terminal()
end,
desc = 'which_key_ignore', desc = 'which_key_ignore',
}, },
{ {
']]', ']]',
function() function() Snacks.words.jump(vim.v.count1) end,
Snacks.words.jump(vim.v.count1)
end,
desc = 'Next Reference', desc = 'Next Reference',
mode = { 'n', 't' }, mode = { 'n', 't' },
}, },
{ {
'[[', '[[',
function() function() Snacks.words.jump(-vim.v.count1) end,
Snacks.words.jump(-vim.v.count1)
end,
desc = 'Prev Reference', desc = 'Prev Reference',
mode = { 'n', 't' }, mode = { 'n', 't' },
}, },
@ -138,12 +108,8 @@ return {
pattern = 'VeryLazy', pattern = 'VeryLazy',
callback = function() callback = function()
-- Setup some globals for debugging (lazy-loaded) -- Setup some globals for debugging (lazy-loaded)
_G.dd = function(...) _G.dd = function(...) Snacks.debug.inspect(...) end
Snacks.debug.inspect(...) _G.bt = function() Snacks.debug.backtrace() end
end
_G.bt = function()
Snacks.debug.backtrace()
end
vim.print = _G.dd -- Override print to use snacks for `:=` command vim.print = _G.dd -- Override print to use snacks for `:=` command
-- Create some toggle mappings -- Create some toggle mappings