diff --git a/plugins/by-name/mini-notify/default.nix b/plugins/by-name/mini-notify/default.nix new file mode 100644 index 00000000..9e6ec944 --- /dev/null +++ b/plugins/by-name/mini-notify/default.nix @@ -0,0 +1,26 @@ +{ lib, ... }: +lib.nixvim.plugins.mkNeovimPlugin { + name = "mini-notify"; + moduleName = "mini.notify"; + + maintainers = [ lib.maintainers.HeitorAugustoLN ]; + + settingsExample = { + content = { + format = lib.nixvim.nestedLiteralLua "nil"; + sort = lib.nixvim.nestedLiteralLua "nil"; + }; + + lsp_progress = { + enable = true; + level = "INFO"; + duration_last = 1000; + }; + + window = { + config = lib.literalExpression "lib.nixvim.emptyTable"; + max_width_share = 0.382; + winblend = 25; + }; + }; +} diff --git a/tests/test-sources/plugins/by-name/mini-notify/default.nix b/tests/test-sources/plugins/by-name/mini-notify/default.nix new file mode 100644 index 00000000..06b1add8 --- /dev/null +++ b/tests/test-sources/plugins/by-name/mini-notify/default.nix @@ -0,0 +1,30 @@ +{ lib, ... }: +{ + empty = { + plugins.mini-notify.enable = true; + }; + + defaults = { + plugins.mini-notify = { + enable = true; + settings = { + content = { + format = lib.nixvim.mkRaw "nil"; + sort = lib.nixvim.mkRaw "nil"; + }; + + lsp_progress = { + enable = true; + level = "INFO"; + duration_last = 1000; + }; + + window = { + config = lib.nixvim.emptyTable; + max_width_share = 0.382; + winblend = 25; + }; + }; + }; + }; +}