2025-01-17 20:00:20 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
2025-01-19 09:15:51 +00:00
|
|
|
inherit (lib.modules) mkIf mkAssert;
|
2025-01-17 20:00:20 +00:00
|
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
|
|
inherit (lib.nvim.lua) toLuaObject;
|
|
|
|
|
|
|
|
cfg = config.vim.mini.notify;
|
|
|
|
in {
|
2025-01-19 09:15:51 +00:00
|
|
|
vim = mkIf cfg.enable (mkAssert (!config.vim.notify.nvim-notify.enable) "Mini.notify is incompatible with nvim-notify!" {
|
2025-01-17 20:00:20 +00:00
|
|
|
startPlugins = ["mini-notify"];
|
|
|
|
|
|
|
|
pluginRC.mini-notify = entryAnywhere ''
|
|
|
|
require("mini.notify").setup(${toLuaObject cfg.setupOpts})
|
2025-01-19 09:15:51 +00:00
|
|
|
vim.notify = MiniNotify.make_notify(${toLuaObject cfg.notifyOpts})
|
2025-01-17 20:00:20 +00:00
|
|
|
'';
|
2025-01-19 09:15:51 +00:00
|
|
|
});
|
2025-01-17 20:00:20 +00:00
|
|
|
}
|