mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-19 10:14:52 +02:00
treewide: use mkWarnings where possible
This commit is contained in:
parent
abba4af10b
commit
12e658eca8
34 changed files with 309 additions and 225 deletions
|
@ -19,9 +19,12 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
warnings = lib.optional (cfg.enableTelescope && (!config.plugins.telescope.enable)) ''
|
||||
Telescope support for `plugins.persisted` is enabled but the telescope plugin is not.
|
||||
'';
|
||||
warnings = lib.nixvim.mkWarnings "plugins.persisted" {
|
||||
when = cfg.enableTelescope && (!config.plugins.telescope.enable);
|
||||
message = ''
|
||||
Telescope support (enableTelescope) is enabled but the telescope plugin is not.
|
||||
'';
|
||||
};
|
||||
|
||||
plugins.telescope.enabledExtensions = lib.mkIf cfg.enableTelescope [ "persisted" ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue