mini/notify: init

This commit is contained in:
LilleAila 2025-01-17 21:00:20 +01:00
parent 6060ae4182
commit 2691dbd351
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -80,6 +80,7 @@
- `mini.map`
- `mini.misc`
- `mini.move`
- `mini.notify`
[kaktu5](https://github.com/kaktu5):

View file

@ -1352,6 +1352,22 @@
"type": "github"
}
},
"plugin-mini-notify": {
"flake": false,
"locked": {
"lastModified": 1736790793,
"narHash": "sha256-q27j14OV6LAfoxeqBG75GSiqtqmW37GOPHpmA2fD4gs=",
"owner": "echasnovski",
"repo": "mini.notify",
"rev": "05e598d5b349bd66404d576e6a4d4340aea5f194",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.notify",
"type": "github"
}
},
"plugin-minimap-vim": {
"flake": false,
"locked": {
@ -2574,6 +2590,7 @@
"plugin-mini-map": "plugin-mini-map",
"plugin-mini-misc": "plugin-mini-misc",
"plugin-mini-move": "plugin-mini-move",
"plugin-mini-notify": "plugin-mini-notify",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -875,5 +875,10 @@
url = "github:echasnovski/mini.move";
flake = false;
};
plugin-mini-notify = {
url = "github:echasnovski/mini.notify";
flake = false;
};
};
}

View file

@ -26,5 +26,6 @@
./map
./misc
./move
./notify
];
}

View file

@ -0,0 +1,19 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.mini.notify;
in {
vim = mkIf cfg.enable {
startPlugins = ["mini-notify"];
pluginRC.mini-notify = entryAnywhere ''
require("mini.notify").setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./notify.nix
./config.nix
];
}

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.mini.notify = {
enable = mkEnableOption "mini.notify";
setupOpts = mkPluginSetupOption "mini.notify" {};
};
}