zegervdv / settle.nvim

Settle your merge conflicts from Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Settle.nvim

A Neovim plugin to help you settle your merge conflicts.

requires Neovim 0.7.0 or later

Inspired by splice.vim.

Configuration

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

Git

In ~/.gitconfig:

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

Mercurial

In ~/.hgrc:

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

About

Settle your merge conflicts from Neovim

License:MIT License


Languages

Language:Lua 100.0%