vim.api.nvim_create_user_command('DeleteOtherBuffers', function() require('snacks').bufdelete.other() end, { desc = 'Delete Other Buffers' }) return { 'folke/snacks.nvim', ---@diagnostic disable-next-line: undefined-doc-name ---@type snacks.Config opts = { lazygit = {}, gitbrowse = {}, }, keys = { { 'gg', function() Snacks.lazygit { cwd = vim.fn.getcwd() } end, { desc = 'Lazygit (Root Dir)' }, }, { 'gf', function() Snacks.lazygit.log_file() end, { desc = 'Lazygit Current File History' }, }, { 'gl', function() Snacks.lazygit.log { cwd = vim.fn.getcwd() } end, { desc = 'Lazygit Log' }, }, { 'gb', 'Gitsigns blame', desc = 'Git blame' }, { 'gs', 'Telescope git_status', desc = 'Git Status' }, { 'go', function() Snacks.gitbrowse() end, desc = 'Git Browse', }, }, }