Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zegervdv/settle.nvim

Settle your merge conflicts from Neovim
https://github.com/zegervdv/settle.nvim

merge-conflicts neovim neovim-lua-plugin neovim-plugin

Last synced: 27 days ago
JSON representation

Settle your merge conflicts from Neovim

Awesome Lists containing this project

README

        

# Settle.nvim

A Neovim plugin to help you settle your merge conflicts.

**requires Neovim 0.7.0 or later**

Inspired by [splice.vim](https://github.com/sjl/splice.vim/).

## Configuration

Using packer, install and configure the options (leave option out to use default value shown in example)

```lua
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,
}
```

### Git

In `~/.gitconfig`:

```gitconfig
[merge]
tool = settle
[mergetool "settle"]
cmd = "nvim -f $BASE $LOCAL $REMOTE $MERGED -c 'SettleInit'"
trustExitCode = true
```

### Mercurial

In `~/.hgrc`:

```conf
[merge-tools]
settle.executable = nvim
settle.args = -f $base $local $other $output -c 'SettleInit'
settle.premerge = keep
settle.priority = 1
```