change gitsigns word diff to off and add toggle keybind

This commit is contained in:
2024-12-10 12:47:55 -05:00
parent 108f3f95c0
commit 7d0ea4a1f9
2 changed files with 68 additions and 67 deletions
+2 -1
View File
@@ -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'))