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; + }; + }; + }; +}