diff --git a/plugins/by-name/rhubarb/default.nix b/plugins/by-name/rhubarb/default.nix new file mode 100644 index 00000000..8835c919 --- /dev/null +++ b/plugins/by-name/rhubarb/default.nix @@ -0,0 +1,20 @@ +{ lib, config, ... }: +lib.nixvim.plugins.mkVimPlugin { + name = "rhubarb"; + packPathName = "vim-rhubarb"; + package = "vim-rhubarb"; + description = "Rhubarb is a GitHub extension for fugitive.vim."; + + maintainers = [ lib.maintainers.santosh ]; + + dependencies = [ "git" ]; + + extraConfig = { + assertions = lib.nixvim.mkAssertions "plugins.rhubarb" [ + { + assertion = config.plugins.fugitive.enable; + message = "You must enable `plugins.fugitive` when using `rhubarb`."; + } + ]; + }; +} diff --git a/tests/test-sources/plugins/by-name/rhubarb/default.nix b/tests/test-sources/plugins/by-name/rhubarb/default.nix new file mode 100644 index 00000000..7759731b --- /dev/null +++ b/tests/test-sources/plugins/by-name/rhubarb/default.nix @@ -0,0 +1,6 @@ +{ + empty = { + plugins.fugitive.enable = true; + plugins.rhubarb.enable = true; + }; +}