Compare commits

..

No commits in common. "fd80eaf644ec9ec019b46cf53efb5cf1d4220716" and "448c00ee1d310c0212538fc26456777d0bb0071e" have entirely different histories.

View File

@ -1,4 +1,23 @@
require('gitsigns').setup {
keymaps = {
-- Default keymap options
buffer = true,
noremap = true,
["n ]c"] = {
expr = true,
"&diff ? ']c' : '<cmd>lua require\"gitsigns\".next_hunk()<CR>'"
},
["n [c"] = {
expr = true,
"&diff ? '[c' : '<cmd>lua require\"gitsigns\".prev_hunk()<CR>'"
},
["n <leader>hs"] = '<cmd>lua require"gitsigns".stage_hunk()<CR>',
["n <leader>hu"] = '<cmd>lua require"gitsigns".undo_stage_hunk()<CR>',
["n <leader>hr"] = '<cmd>lua require"gitsigns".reset_hunk()<CR>',
["n <leader>hp"] = '<cmd>lua require"gitsigns".preview_hunk()<CR>',
["n <leader>hb"] = '<cmd>lua require"gitsigns".blame_line()<CR>'
},
-- signs
status_formatter = nil, -- Use default
numhl = false,
@ -19,7 +38,7 @@ require('gitsigns').setup {
numhl = "GitSignsDeleteNr"
}
},
-- yadm = {enable = true},
yadm = {enable = true},
-- Current line blame
current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame`