mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-02 09:04:54 +02:00
treewide: use boolean comparison to simplify the code base
This commit is contained in:
parent
5066c71549
commit
e908e344f4
18 changed files with 29 additions and 64 deletions
|
@ -71,8 +71,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
extraConfig = cfg: {
|
||||
warnings = lib.nixvim.mkWarnings "plugins.twilight" {
|
||||
when =
|
||||
(isBool cfg.settings.treesitter) && cfg.settings.treesitter && (!config.plugins.treesitter.enable);
|
||||
when = (cfg.settings.treesitter == true) && (!config.plugins.treesitter.enable);
|
||||
message = ''
|
||||
You have set `plugins.twilight.treesitter` to `true` but `plugins.treesitter.enable` is false.
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue