mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-31 08:05:23 +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
|
@ -84,11 +84,14 @@ lib.nixvim.plugins.mkVimPlugin {
|
|||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
warnings = lib.optional (cfg.treesitter.enable && (!config.plugins.treesitter.enable)) ''
|
||||
Nixvim (plugins.vim-matchup): `plugins.vim-matchup.treesitter.enable` is `true`, but the
|
||||
treesitter plugin itself is not.
|
||||
-> Set `plugins.treesitter.enable` to `true`.
|
||||
'';
|
||||
warnings = lib.nixvim.mkWarnings "plugins.vim-matchup" {
|
||||
when = cfg.treesitter.enable && (!config.plugins.treesitter.enable);
|
||||
|
||||
message = ''
|
||||
`plugins.vim-matchup.treesitter.enable` is `true`, but the treesitter plugin itself is not.
|
||||
-> Set `plugins.treesitter.enable` to `true`.
|
||||
'';
|
||||
};
|
||||
|
||||
plugins.treesitter.settings.matchup = cfg.treesitter;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue