mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
plugins/conflict.nvim: init
This commit is contained in:
committed by
Matt Sturgeon
parent
5dac467f1c
commit
43a7e6f829
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user