treewide: use boolean comparison to simplify the code base

This commit is contained in:
Gaetan Lepage 2025-01-29 17:42:54 +01:00
parent 5066c71549
commit e908e344f4
18 changed files with 29 additions and 64 deletions

View file

@ -240,8 +240,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
plugins.sqlite-lua.enable = mkOverride 1490 true;
warnings = lib.nixvim.mkWarnings "plugins.neoclip" {
when =
isBool cfg.settings.enable_persistent_history
&& cfg.settings.enable_persistent_history
(cfg.settings.enable_persistent_history == true)
&& options.plugins.sqlite-lua.enable.highestPrio == 1490;
message = ''
@ -250,9 +249,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
};
assertions = lib.nixvim.mkAssertions "plugins.neoclip" {
assertion =
isBool cfg.settings.enable_persistent_history && cfg.settings.enable_persistent_history
-> config.plugins.sqlite-lua.enable;
assertion = (cfg.settings.enable_persistent_history == true) -> config.plugins.sqlite-lua.enable;
message = ''
The persistent history sqlite storage backend needs `sqlite-lua` to function as intended.
You can enable it by setting `plugins.sqlite-lua.enable` to `true`.