mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 17:45:03 +02:00
treewide: use mkWarnings wherever possible
This commit is contained in:
parent
2ec6218f87
commit
60adb6c56b
17 changed files with 158 additions and 122 deletions
|
@ -145,10 +145,14 @@ in
|
|||
extraPlugins = [ cfg.package ];
|
||||
|
||||
# TODO: print the location of the offending options
|
||||
warnings = lib.optional (nixvimPkgs.wrong != [ ]) ''
|
||||
Nixvim (plugins.efmls-configs): Following tools are not handled by nixvim, please add them to `externallyManagedPackages` to silence this:
|
||||
${lib.concatMapStringsSep "\n" (tool: " - ${tool}") nixvimPkgs.wrong}
|
||||
'';
|
||||
warnings = lib.nixvim.mkWarnings "plugins.efmls-configs" {
|
||||
when = nixvimPkgs.wrong != [ ];
|
||||
|
||||
message = ''
|
||||
Following tools are not handled by nixvim, please add them to `externallyManagedPackages` to silence this:
|
||||
${lib.concatMapStringsSep "\n" (tool: " - ${tool}") nixvimPkgs.wrong}
|
||||
'';
|
||||
};
|
||||
|
||||
plugins.lsp.servers.efm = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue