From 86ca2b6785816d764a9582170698961b50451838 Mon Sep 17 00:00:00 2001 From: Heitor Augusto <44377258+HeitorAugustoLN@users.noreply.github.com> Date: Sun, 2 Nov 2025 01:59:25 -0300 Subject: [PATCH] plugins/mini-notify: init --- plugins/by-name/mini-notify/default.nix | 26 ++++++++++++++++ .../plugins/by-name/mini-notify/default.nix | 30 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 plugins/by-name/mini-notify/default.nix create mode 100644 tests/test-sources/plugins/by-name/mini-notify/default.nix 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; + }; + }; + }; + }; +}