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

unified: add module

an inline, unified diff viewer for neovim
This commit is contained in:
Austin Horstman 2025-09-16 17:59:57 -05:00
parent 7f45eae65b
commit 3e8c4c802c
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "unified";
packPathName = "unified.nvim";
package = "unified-nvim";
maintainers = [ lib.maintainers.khaneliman ];
settingsExample = {
line_symbols = {
add = "";
delete = "󰊂";
change = "";
};
auto_refresh = false;
};
}

View file

@ -0,0 +1,29 @@
{
empty = {
plugins.unified.enable = true;
};
defaults = {
plugins.unified = {
enable = true;
settings = {
signs = {
add = "";
delete = "";
change = "";
};
highlights = {
add = "DiffAdd";
delete = "DiffDelete";
change = "DiffChange";
};
line_symbols = {
add = "+";
delete = "-";
change = "~";
};
auto_refresh = true;
};
};
};
}