fix git gutter color

This commit is contained in:
Mans Ziesel 2023-09-03 19:07:56 +02:00
parent a6e58c28d8
commit 11e2de967a

View File

@ -122,11 +122,16 @@ require('lazy').setup({
opts = {
-- See `:help gitsigns.txt`
signs = {
add = { text = '+' },
change = { text = '~' },
delete = { text = '_' },
topdelete = { text = '' },
changedelete = { text = '~' },
-- add = { text = '+' },
-- change = { text = '~' },
-- delete = { text = '_' },
-- topdelete = { text = '‾' },
-- changedelete = { text = '~' },
add = {hl = 'GitGutterAdd' , text = '+'},
change = {hl = 'GitGutterChange', text = '~'},
delete = {hl = 'GitGutterDelete', text = '_'},
topdelete = {hl = 'GitGutterDelete', text = ''},
changedelete = {hl = 'GitGutterChange', text = '~'},
},
on_attach = function(bufnr)
vim.keymap.set('n', '<leader>gp', require('gitsigns').prev_hunk, { buffer = bufnr, desc = '[G]o to [P]revious Hunk' })