add more plugins, change and remove several keymaps
This commit is contained in:
parent
8d7a79a990
commit
f215462b74
6 changed files with 14 additions and 36 deletions
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue