mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 18:24:35 +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
|
@ -117,10 +117,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
extraConfig = cfg: {
|
||||
warnings = lib.nixvim.mkWarnings "colorschemes.monokai-pro" {
|
||||
when =
|
||||
(lib.isBool cfg.settings.devicons)
|
||||
&& cfg.settings.devicons
|
||||
&& (!config.plugins.web-devicons.enable);
|
||||
when = (cfg.settings.devicons == true) && (!config.plugins.web-devicons.enable);
|
||||
message = ''
|
||||
You have enabled `settings.devicons` but `plugins.web-devicons.enable` is `false`.
|
||||
Consider enabling the plugin for proper devicons support.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue