move out git related stuff

This commit is contained in:
Thomas Ruoff
2025-05-07 22:59:19 +02:00
parent abe2b1c0d9
commit 6868f9c476
2 changed files with 21 additions and 13 deletions

View File

@@ -1,19 +1,6 @@
return {
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
{ -- Adds git related signs to the gutter, as well as utilities for managing changes
'lewis6991/gitsigns.nvim',
opts = {
signs = {
add = { text = '+' },
change = { text = '~' },
delete = { text = '_' },
topdelete = { text = '' },
changedelete = { text = '~' },
},
},
},
{ -- Add indentation guides even on blank lines
'lukas-reineke/indent-blankline.nvim',
-- Enable `lukas-reineke/indent-blankline.nvim`

21
lua/plugins/git.lua Normal file
View File

@@ -0,0 +1,21 @@
return {
{ -- Adds git related signs to the gutter, as well as utilities for managing changes
'lewis6991/gitsigns.nvim',
opts = {
signs = {
add = { text = '+' },
change = { text = '~' },
delete = { text = '_' },
topdelete = { text = '' },
changedelete = { text = '~' },
},
},
},
{
'tpope/vim-fugitive',
keys = {
{ '<leader>gs', ':vertical Git<CR>', { desc = '[g]it [s]tatus' } },
},
},
{ 'tpope/vim-rhubarb' },
}