diff --git a/modules/programs/nvim/default.nix b/modules/programs/nvim/default.nix index 702542e..f126481 100644 --- a/modules/programs/nvim/default.nix +++ b/modules/programs/nvim/default.nix @@ -50,7 +50,7 @@ let "dir = ${quote plugin}" "name = ${quote (getName plugin)}" ] - ++ (optional (!lazy) "lazy = ${boolToString lazy}") + ++ (optional (lazy != null) "lazy = ${boolToString lazy}") ++ (optional (!enabled) "enabled = ${boolToString enabled}") ++ (optional (dependencies != [ ]) "dependencies = ${listToStringMultiLine id (map lazySpecFromPlugin dependencies)}") ++ (optional (init != null) "init = function(plugin)\n${toString init}\nend") @@ -59,7 +59,7 @@ let ++ (optional (event != [ ]) "event = ${listToStringOneLine quote event}") ++ (optional (cmd != [ ]) "cmd = ${listToStringOneLine quote cmd}") ++ (optional (ft != [ ]) "ft = ${listToStringOneLine quote ft}") - ++ (optional (priority != 50) "priority = ${toString priority}") + ++ (optional (priority != null) "priority = ${toString priority}") ); lazySpecs = listToStringMultiLine id (map lazySpecFromPlugin cfg.plugins); lazy = '' @@ -86,7 +86,7 @@ in type = nullOr str; default = null; description = '' - Lua code to be executed when the plugin is loaded. + Lua function to be executed when the plugin is loaded. ''; }; dependencies = mkOption { @@ -111,8 +111,8 @@ in ''; }; lazy = mkOption { - type = bool; - default = true; + type = nullOr bool; + default = null; description = '' Whether to load the plugin lazily. ''; @@ -145,8 +145,8 @@ in ''; }; priority = mkOption { - type = int; - default = 50; + type = nullOr int; + default = null; description = '' Priority to load the plugin. '';