plugins/conflict.nvim: init
This commit is contained in:
parent
5dac467f1c
commit
43a7e6f829
2 changed files with 84 additions and 0 deletions
29
plugins/by-name/conflict/default.nix
Normal file
29
plugins/by-name/conflict/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
55
tests/test-sources/plugins/by-name/conflict/default.nix
Normal file
55
tests/test-sources/plugins/by-name/conflict/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue