change gitsigns word diff to off and add toggle keybind
This commit is contained in:
@@ -174,6 +174,7 @@ end, opts('Diff this ~'))
|
||||
|
||||
-- ───────────────────────────────────────────────────────────( git )─
|
||||
keymap.set('n', '<leader>Lg', '<cmd>LazyGit<cr>', opts('Open LazyGit'))
|
||||
vim.keymap.set('n', '<leader>hw', '<cmd>Gitsigns toggle_word_diff', opts('Toggle word diff'))
|
||||
keymap.set('n', ']h', function()
|
||||
require('gitsigns').nav_hunk('next')
|
||||
end, opts('Next hunk'))
|
||||
@@ -243,4 +244,4 @@ keymap.set('i', '<C-s>', function()
|
||||
else
|
||||
vim.opt_local.spell = true
|
||||
end
|
||||
end, opts('Toggle spell check'))
|
||||
end, opts('Toggle spell check'))
|
||||
Reference in New Issue
Block a user