mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-07 11:17:15 +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
|
}: let
|
||||||
inherit (lib.options) mkEnableOption mkOption;
|
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.types) mkPluginSetupOption;
|
||||||
inherit (lib.nvim.config) mkBool;
|
inherit (lib.nvim.config) mkBool;
|
||||||
in {
|
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