mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
parent
b9d0415b1c
commit
9023e15e60
2 changed files with 51 additions and 0 deletions
18
plugins/by-name/kiwi/default.nix
Normal file
18
plugins/by-name/kiwi/default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "kiwi";
|
||||||
|
package = "kiwi-nvim";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
__unkeyed-1 = {
|
||||||
|
name = "work";
|
||||||
|
path = "work-wiki";
|
||||||
|
};
|
||||||
|
__unkeyed-2 = {
|
||||||
|
name = "personal";
|
||||||
|
path = "personal-wiki";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
33
tests/test-sources/plugins/by-name/kiwi/default.nix
Normal file
33
tests/test-sources/plugins/by-name/kiwi/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
# stderr is not empty:
|
||||||
|
# last 1 log lines:
|
||||||
|
# > ERROR: /build/build/wiki is created.
|
||||||
|
test.runNvim = false;
|
||||||
|
|
||||||
|
plugins.kiwi.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
# stderr is not empty:
|
||||||
|
# last 2 log lines:
|
||||||
|
# > ERROR: /build/work-wiki is created.
|
||||||
|
# > /build/personal-wiki is created.
|
||||||
|
test.runNvim = false;
|
||||||
|
|
||||||
|
plugins.kiwi = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
__unkeyed-1 = {
|
||||||
|
name = "work";
|
||||||
|
path = "work-wiki";
|
||||||
|
};
|
||||||
|
__unkeyed-2 = {
|
||||||
|
name = "personal";
|
||||||
|
path = "personal-wiki";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue