A Neovim plugin to help you settle your merge conflicts.
requires Neovim 0.7.0 or later
Inspired by splice.vim.
Using packer, install and configure the options (leave option out to use default value shown in example)
use {
'zegervdv/settle.nvim',
opt = true,
cmd = { 'SettleInit' },
config = function()
require('settle').setup {
wrap = true,
symbol = '!',
keymaps = {
next_conflict = '-n',
prev_conflict = '-N',
use_ours = '-u1',
use_theirs = '-u2',
close = '-q',
},
}
end,
}
In ~/.gitconfig
:
[merge]
tool = settle
[mergetool "settle"]
cmd = "nvim -f $BASE $LOCAL $REMOTE $MERGED -c 'SettleInit'"
trustExitCode = true
In ~/.hgrc
:
[merge-tools]
settle.executable = nvim
settle.args = -f $base $local $other $output -c 'SettleInit'
settle.premerge = keep
settle.priority = 1