1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 11:36:07 +01:00

plugins/mini-diff: init

This commit is contained in:
Heitor Augusto 2025-11-02 00:56:30 -03:00 committed by Austin Horstman
parent aa93ed0257
commit 4e04137157
2 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "mini-diff";
moduleName = "mini.diff";
maintainers = [ lib.maintainers.HeitorAugustoLN ];
settingsExample = {
view = {
style = lib.nixvim.nestedLiteralLua "vim.go.number and 'number' or 'sign'";
signs = {
add = "";
change = "";
delete = "";
};
priority = 199;
};
source = lib.nixvim.nestedLiteralLua "nil";
delay = {
text_change = 200;
};
mappings = {
apply = "gh";
reset = "gH";
textobject = "gh";
goto_first = "[H";
goto_prev = "[h";
goto_next = "]h";
goto_last = "]H";
};
options = {
algorithm = "histogram";
indent_heuristic = true;
linematch = 60;
wrap_goto = false;
};
};
}

View file

@ -0,0 +1,42 @@
{ lib, ... }:
{
empty = {
plugins.mini-diff.enable = true;
};
defaults = {
plugins.mini-diff = {
enable = true;
settings = {
view = {
style = lib.nixvim.mkRaw "vim.go.number and 'number' or 'sign'";
signs = {
add = "";
change = "";
delete = "";
};
priority = 199;
};
source = lib.nixvim.mkRaw "nil";
delay = {
text_change = 200;
};
mappings = {
apply = "gh";
reset = "gH";
textobject = "gh";
goto_first = "[H";
goto_prev = "[h";
goto_next = "]h";
goto_last = "]H";
};
options = {
algorithm = "histogram";
indent_heuristic = true;
linematch = 60;
wrap_goto = false;
};
};
};
};
}