mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 18:24:35 +02:00
treewide: use mkAssertions where possible
This commit is contained in:
parent
12e658eca8
commit
ce82e5859d
14 changed files with 94 additions and 104 deletions
|
@ -94,15 +94,14 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
callSetup = false;
|
||||
hasSettings = false;
|
||||
extraConfig = cfg: {
|
||||
assertions = [
|
||||
{
|
||||
assertion = cfg.mockDevIcons -> cfg.modules ? icons;
|
||||
message = ''
|
||||
You have enabled `plugins.mini.mockDevIcons` but have not defined `plugins.mini.modules.icons`.
|
||||
This setting will have no effect without it.
|
||||
'';
|
||||
}
|
||||
];
|
||||
assertions = lib.nixvim.mkAssertions "pluhins.mini" {
|
||||
assertion = cfg.mockDevIcons -> cfg.modules ? icons;
|
||||
message = ''
|
||||
You have enabled `plugins.mini.mockDevIcons` but have not defined `plugins.mini.modules.icons`.
|
||||
This setting will have no effect without it.
|
||||
'';
|
||||
};
|
||||
|
||||
plugins.mini.luaConfig.content =
|
||||
lib.foldlAttrs (lines: name: config: ''
|
||||
${lines}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue