Update config
This commit is contained in:
parent
de76eeffc4
commit
9678e43efe
9 changed files with 128 additions and 11 deletions
45
lua/custom/plugins/snacks.lua
Normal file
45
lua/custom/plugins/snacks.lua
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
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 = {
|
||||
{
|
||||
'<leader>gg',
|
||||
function()
|
||||
Snacks.lazygit { cwd = vim.fn.getcwd() }
|
||||
end,
|
||||
{ desc = 'Lazygit (Root Dir)' },
|
||||
},
|
||||
{
|
||||
'<leader>gf',
|
||||
function()
|
||||
Snacks.lazygit.log_file()
|
||||
end,
|
||||
{ desc = 'Lazygit Current File History' },
|
||||
},
|
||||
{
|
||||
'<leader>gl',
|
||||
function()
|
||||
Snacks.lazygit.log { cwd = vim.fn.getcwd() }
|
||||
end,
|
||||
{ desc = 'Lazygit Log' },
|
||||
},
|
||||
{ '<leader>gb', '<cmd>Gitsigns blame<cr>', desc = 'Git blame' },
|
||||
{ '<leader>gs', '<cmd>Telescope git_status<CR>', desc = 'Git Status' },
|
||||
{
|
||||
'<leader>go',
|
||||
function()
|
||||
Snacks.gitbrowse()
|
||||
end,
|
||||
desc = 'Git Browse',
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue