mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-01 00:25:55 +00:00
noice: add filter
This commit is contained in:
parent
4eeedf6f81
commit
6a55221aa1
1 changed files with 33 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) anything nullOr;
|
||||
inherit (lib.types) anything nullOr listOf submodule str;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
inherit (lib.nvim.config) mkBool;
|
||||
in {
|
||||
|
|
@ -102,7 +102,38 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
# TODO: messages, routes
|
||||
routes = mkOption {
|
||||
description = "How to route messages";
|
||||
type = listOf (submodule {
|
||||
options = {
|
||||
view = mkOption {
|
||||
description = "";
|
||||
type = str;
|
||||
};
|
||||
|
||||
filter = mkOption {
|
||||
description = "";
|
||||
type = anything;
|
||||
};
|
||||
|
||||
opts = mkOption {
|
||||
description = "";
|
||||
type = nullOr anything;
|
||||
};
|
||||
};
|
||||
});
|
||||
|
||||
default = [
|
||||
{
|
||||
filter = {
|
||||
event = "msg_show";
|
||||
kind = "";
|
||||
find = "written";
|
||||
};
|
||||
opts = {skip = true;};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue