add more plugins, change and remove several keymaps

This commit is contained in:
vladstojna 2023-06-06 05:15:43 +01:00 committed by vladstojna
parent 8d7a79a990
commit f215462b74
6 changed files with 14 additions and 36 deletions

View file

@ -16,14 +16,14 @@ require('gitsigns').setup {
end
-- Navigation
map('n', ']c', function()
if vim.wo.diff then return ']c' end
map('n', ']h', function()
if vim.wo.diff then return ']h' end
vim.schedule(function() gs.next_hunk() end)
return '<Ignore>'
end, { expr = true, desc = "gitsigns: next hunk" })
map('n', '[c', function()
if vim.wo.diff then return '[c' end
map('n', '[h', function()
if vim.wo.diff then return '[h' end
vim.schedule(function() gs.prev_hunk() end)
return '<Ignore>'
end, { expr = true, desc = "gitsigns: prev hunk" })