re-organised config
This commit is contained in:
26
lua/plugins/git.lua
Normal file
26
lua/plugins/git.lua
Normal file
@ -0,0 +1,26 @@
|
||||
return {
|
||||
{ -- Git integrations
|
||||
'tpope/vim-fugitive',
|
||||
cmd = { 'G', 'Git' },
|
||||
keys = {
|
||||
{ '<leader>gg', '<cmd>Git<cr>', desc = 'Open git fugitive' },
|
||||
},
|
||||
},
|
||||
{ -- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||
'lewis6991/gitsigns.nvim',
|
||||
lazy = false,
|
||||
keys = {
|
||||
{ '<leader>gb', '<cmd>Gitsigns blame<cr>', desc = 'Show blame for current buffer' },
|
||||
{ '<leader>gp', '<cmd>Gitsigns preview_hunk<cr>', desc = 'Preview hunk' },
|
||||
},
|
||||
opts = {
|
||||
signs = {
|
||||
add = { text = '+' },
|
||||
change = { text = '~' },
|
||||
delete = { text = '_' },
|
||||
topdelete = { text = '‾' },
|
||||
changedelete = { text = '~' },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user