plugins/conflict.nvim: init

This commit is contained in:
jaredmontoya 2026-06-04 22:34:42 +02:00 committed by Matt Sturgeon
parent 5dac467f1c
commit 43a7e6f829
2 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "conflict";
package = "conflict-nvim";
description = "A simple Neovim plugin to resolve merge conflicts with ease.";
maintainers = [ lib.maintainers.jaredmontoya ];
dependencies = [ "git" ];
settingsExample = {
default_mappings = {
current = "<leader>co";
incoming = "<leader>ct";
both = "<leader>ca";
base = "<leader>cb";
none = "<leader>cn";
next = "]e";
prev = "[e";
};
show_actions = false;
disable_diagnostics = false;
highlights = {
current = "DiffChange";
incoming = "DiffText";
ancestor = "DiffDelete";
};
};
}

View file

@ -0,0 +1,55 @@
{
empty = {
plugins.conflict.enable = true;
};
defaults = {
plugins.conflict = {
enable = true;
settings = {
default_mappings = {
current = "cc";
incoming = "ci";
both = "cb";
base = "cB";
none = false;
next = "]x";
prev = "[x";
};
show_actions = true;
disable_diagnostics = true;
highlights = {
current = "DiffText";
incoming = "DiffAdd";
ancestor = "DiffChange";
};
};
};
};
example = {
plugins.conflict = {
enable = true;
settings = {
default_mappings = {
current = "<leader>co";
incoming = "<leader>ct";
both = "<leader>ca";
base = "<leader>cb";
none = "<leader>cn";
next = "]e";
prev = "[e";
};
show_actions = false;
disable_diagnostics = false;
highlights = {
current = "DiffChange";
incoming = "DiffText";
ancestor = "DiffDelete";
};
};
};
};
}