Skip to content

Commit 5fbc72d

Browse files
git/git-conflict: avoid shadowing builtin keybinds (#651)
* git/git-conflict: avoid shadowing builtin keybinds * docs: update release notes --------- Co-authored-by: raf <me@notashelf.dev>
1 parent 4aac51e commit 5fbc72d

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

docs/release-notes/rl-0.8.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release 0.8 {#sec-release-0.8}
22

3+
## Breaking changes
4+
5+
- `git-conflict` keybinds are now prefixed with `<leader>` to avoid conflicting
6+
with builtins
7+
38
[NotAShelf](https://github.com/notashelf):
49

510
[typst-preview.nvim]: https://github.com/chomosuke/typst-preview.nvim

modules/plugins/git/git-conflict/git-conflict.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ in {
1212
setupOpts = mkPluginSetupOption "git-conflict" {};
1313

1414
mappings = {
15-
ours = mkMappingOption "Choose Ours [Git-Conflict]" "co";
16-
theirs = mkMappingOption "Choose Theirs [Git-Conflict]" "ct";
17-
both = mkMappingOption "Choose Both [Git-Conflict]" "cb";
18-
none = mkMappingOption "Choose None [Git-Conflict]" "c0";
15+
ours = mkMappingOption "Choose Ours [Git-Conflict]" "<leader>co";
16+
theirs = mkMappingOption "Choose Theirs [Git-Conflict]" "<leader>ct";
17+
both = mkMappingOption "Choose Both [Git-Conflict]" "<leader>cb";
18+
none = mkMappingOption "Choose None [Git-Conflict]" "<leader>c0";
1919
prevConflict = mkMappingOption "Go to the previous Conflict [Git-Conflict]" "]x";
2020
nextConflict = mkMappingOption "Go to the next Conflict [Git-Conflict]" "[x";
2121
};

0 commit comments

Comments
 (0)