mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
rhubarb: init
This commit is contained in:
parent
80cdf28db4
commit
47b2ce062a
2 changed files with 26 additions and 0 deletions
20
plugins/by-name/rhubarb/default.nix
Normal file
20
plugins/by-name/rhubarb/default.nix
Normal file
|
|
@ -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`.";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
6
tests/test-sources/plugins/by-name/rhubarb/default.nix
Normal file
6
tests/test-sources/plugins/by-name/rhubarb/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.fugitive.enable = true;
|
||||||
|
plugins.rhubarb.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue