ghostbuster91 / nvim-next

Apache License 2.0
29 stars 6 forks source link

git-signs and visual mode #10

Closed ghostbuster91 closed 1 year ago

ghostbuster91 commented 1 year ago

right now combination of v + ]c does nothing.

ghostbuster91 commented 1 year ago

because gitsigns was not enabled for visual mode.

The fix:

            map({ 'n', 'v' }, ']c', function()
                if vim.wo.diff then return ']c' end
                vim.schedule(function() nngs.next_hunk({ wrap = false }) end)
                return '<Ignore>'
            end, { expr = true })