mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 04:04:34 +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
|
@ -44,10 +44,14 @@ let
|
|||
}
|
||||
];
|
||||
|
||||
warnings = optional (!config.plugins.treesitter.enable) ''
|
||||
Nixvim (plugins.neotest.adapters.${name}): This adapter requires `treesitter` to be enabled.
|
||||
You might want to set `plugins.treesitter.enable = true` and ensure that the `${treesitter-parser}` parser is enabled.
|
||||
'';
|
||||
warnings = lib.nixvim.mkWarnings "plugins.neotest.adapters.${name}" {
|
||||
when = !config.plugins.treesitter.enable;
|
||||
|
||||
message = ''
|
||||
This adapter requires `treesitter` to be enabled.
|
||||
You might want to set `plugins.treesitter.enable = true` and ensure that the `${treesitter-parser}` parser is enabled.
|
||||
'';
|
||||
};
|
||||
|
||||
plugins.neotest.settings.adapters =
|
||||
let
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue