diff --git a/doc/diffs.nvim.txt b/doc/diffs.nvim.txt index dd87d46..65345d4 100644 --- a/doc/diffs.nvim.txt +++ b/doc/diffs.nvim.txt @@ -95,8 +95,8 @@ Configuration is done via `vim.g.diffs`. Set this before the plugin loads: theirs = 'dot', both = 'dob', none = 'don', - next = ']x', - prev = '[x', + next = ']c', + prev = '[c', }, }, } @@ -368,8 +368,8 @@ Example configuration: >lua vim.keymap.set('n', 'ct', '(diffs-conflict-theirs)') vim.keymap.set('n', 'cb', '(diffs-conflict-both)') vim.keymap.set('n', 'cn', '(diffs-conflict-none)') - vim.keymap.set('n', ']x', '(diffs-conflict-next)') - vim.keymap.set('n', '[x', '(diffs-conflict-prev)') + vim.keymap.set('n', ']c', '(diffs-conflict-next)') + vim.keymap.set('n', '[c', '(diffs-conflict-prev)') < *(diffs-merge-ours)* @@ -483,8 +483,8 @@ Configuration: ~ theirs = 'dot', both = 'dob', none = 'don', - next = ']x', - prev = '[x', + next = ']c', + prev = '[c', }, }, } @@ -555,10 +555,10 @@ Configuration: ~ {none} (string|false, default: 'don') Reject both changes (delete entire block). - {next} (string|false, default: ']x') + {next} (string|false, default: ']c') Jump to next conflict marker. Wraps around. - {prev} (string|false, default: '[x') + {prev} (string|false, default: '[c') Jump to previous conflict marker. Wraps around. @@ -582,7 +582,7 @@ When pressing `du`/`dU` on an unmerged (`U`) file in the fugitive status buffer, diffs.nvim opens a unified diff of ours (`git show :2:path`) vs theirs (`git show :3:path`) with full treesitter and intra-line highlighting. -The same conflict resolution keymaps (`doo`/`dot`/`dob`/`don`/`]x`/`[x`) +The same conflict resolution keymaps (`doo`/`dot`/`dob`/`don`/`]c`/`[c`) are available on the diff buffer. They resolve conflicts in the working file by matching diff hunks to conflict markers: @@ -590,7 +590,7 @@ file by matching diff hunks to conflict markers: - `dot` replaces the conflict region with theirs content - `dob` replaces with both (ours then theirs) - `don` removes the conflict region entirely -- `]x`/`[x` navigate between unresolved conflict hunks +- `]c`/`[c` navigate between unresolved conflict hunks Resolved hunks are marked with `(resolved)` virtual text. Hunks that correspond to auto-merged content (no conflict markers) show an diff --git a/lua/diffs/init.lua b/lua/diffs/init.lua index 2423596..6195e8e 100644 --- a/lua/diffs/init.lua +++ b/lua/diffs/init.lua @@ -152,8 +152,8 @@ local default_config = { theirs = 'dot', both = 'dob', none = 'don', - next = ']x', - prev = '[x', + next = ']c', + prev = '[c', }, }, } diff --git a/spec/conflict_spec.lua b/spec/conflict_spec.lua index dd190c9..9f3df5d 100644 --- a/spec/conflict_spec.lua +++ b/spec/conflict_spec.lua @@ -12,8 +12,8 @@ local function default_config(overrides) theirs = 'dot', both = 'dob', none = 'don', - next = ']x', - prev = '[x', + next = ']c', + prev = '[c', }, } if overrides then diff --git a/spec/merge_spec.lua b/spec/merge_spec.lua index 6cb9f7e..5e4b854 100644 --- a/spec/merge_spec.lua +++ b/spec/merge_spec.lua @@ -12,8 +12,8 @@ local function default_config(overrides) theirs = 'dot', both = 'dob', none = 'don', - next = ']x', - prev = '[x', + next = ']c', + prev = '[c', }, } if overrides then