diff --git a/plugins/by-name/mini-doc/default.nix b/plugins/by-name/mini-doc/default.nix new file mode 100644 index 00000000..63fcdd3b --- /dev/null +++ b/plugins/by-name/mini-doc/default.nix @@ -0,0 +1,14 @@ +{ lib, ... }: +lib.nixvim.plugins.mkNeovimPlugin { + name = "mini-doc"; + moduleName = "mini.doc"; + + maintainers = [ lib.maintainers.HeitorAugustoLN ]; + + settingsExample = { + annotation_pattern = "^%-%-%-(%S*) ?"; + default_section_id = "@text"; + script_path = "scripts/minidoc.lua"; + silent = true; + }; +} diff --git a/tests/test-sources/plugins/by-name/mini-doc/default.nix b/tests/test-sources/plugins/by-name/mini-doc/default.nix new file mode 100644 index 00000000..c2280cd2 --- /dev/null +++ b/tests/test-sources/plugins/by-name/mini-doc/default.nix @@ -0,0 +1,17 @@ +{ + empty = { + plugins.mini-doc.enable = true; + }; + + defaults = { + plugins.mini-doc = { + enable = true; + settings = { + annotation_pattern = "^%-%-%-(%S*) ?"; + default_section_id = "@text"; + script_path = "scripts/minidoc.lua"; + silent = true; + }; + }; + }; +}