From 3e8c4c802cdb54367e64661e89abc703f3cc75c5 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 16 Sep 2025 17:59:57 -0500 Subject: [PATCH] unified: add module an inline, unified diff viewer for neovim --- plugins/by-name/unified/default.nix | 17 +++++++++++ .../plugins/by-name/unified/default.nix | 29 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 plugins/by-name/unified/default.nix create mode 100644 tests/test-sources/plugins/by-name/unified/default.nix diff --git a/plugins/by-name/unified/default.nix b/plugins/by-name/unified/default.nix new file mode 100644 index 00000000..34c766d8 --- /dev/null +++ b/plugins/by-name/unified/default.nix @@ -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; + }; +} diff --git a/tests/test-sources/plugins/by-name/unified/default.nix b/tests/test-sources/plugins/by-name/unified/default.nix new file mode 100644 index 00000000..aa728677 --- /dev/null +++ b/tests/test-sources/plugins/by-name/unified/default.nix @@ -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; + }; + }; + }; +}