mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 09:36:10 +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
|
@ -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`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue