From 4891019be72a8b844a57cd7a5ca39597a2494447 Mon Sep 17 00:00:00 2001 From: Reathe Date: Mon, 23 Feb 2026 15:31:44 +0100 Subject: [PATCH] formatting change --- lua/custom/plugins/init.lua | 68 ++++++++++--------------------------- 1 file changed, 17 insertions(+), 51 deletions(-) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index a9322e39..255b523b 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -27,108 +27,78 @@ return { keys = { { '.', - function() - Snacks.scratch() - end, + function() Snacks.scratch() end, desc = 'Toggle Scratch Buffer', }, { 'S', - function() - Snacks.scratch.select() - end, + function() Snacks.scratch.select() end, desc = 'Select Scratch Buffer', }, { 'n', - function() - Snacks.notifier.show_history() - end, + function() Snacks.notifier.show_history() end, desc = 'Notification History', }, { 'bd', - function() - Snacks.bufdelete() - end, + function() Snacks.bufdelete() end, desc = 'Delete Buffer', }, { 'cR', - function() - Snacks.rename.rename_file() - end, + function() Snacks.rename.rename_file() end, desc = 'Rename File', }, { 'gB', - function() - Snacks.gitbrowse() - end, + function() Snacks.gitbrowse() end, desc = 'Git Browse', }, { 'gb', - function() - Snacks.git.blame_line() - end, + function() Snacks.git.blame_line() end, desc = 'Git Blame Line', }, { 'gf', - function() - Snacks.lazygit.log_file() - end, + function() Snacks.lazygit.log_file() end, desc = 'Lazygit Current File History', }, { 'gg', - function() - Snacks.lazygit() - end, + function() Snacks.lazygit() end, desc = 'Lazygit', }, { 'gl', - function() - Snacks.lazygit.log() - end, + function() Snacks.lazygit.log() end, desc = 'Lazygit Log (cwd)', }, { 'un', - function() - Snacks.notifier.hide() - end, + function() Snacks.notifier.hide() end, desc = 'Dismiss All Notifications', }, { '', - function() - Snacks.terminal() - end, + function() Snacks.terminal() end, desc = 'Toggle Terminal', }, { '', - function() - Snacks.terminal() - end, + function() Snacks.terminal() end, desc = 'which_key_ignore', }, { ']]', - function() - Snacks.words.jump(vim.v.count1) - end, + function() Snacks.words.jump(vim.v.count1) end, desc = 'Next Reference', mode = { 'n', 't' }, }, { '[[', - function() - Snacks.words.jump(-vim.v.count1) - end, + function() Snacks.words.jump(-vim.v.count1) end, desc = 'Prev Reference', mode = { 'n', 't' }, }, @@ -138,12 +108,8 @@ return { pattern = 'VeryLazy', callback = function() -- Setup some globals for debugging (lazy-loaded) - _G.dd = function(...) - Snacks.debug.inspect(...) - end - _G.bt = function() - Snacks.debug.backtrace() - end + _G.dd = function(...) Snacks.debug.inspect(...) end + _G.bt = function() Snacks.debug.backtrace() end vim.print = _G.dd -- Override print to use snacks for `:=` command -- Create some toggle mappings