diff --git a/plugins/utils/neorg.nix b/plugins/utils/neorg.nix index 233f8994..20d12f47 100644 --- a/plugins/utils/neorg.nix +++ b/plugins/utils/neorg.nix @@ -127,9 +127,14 @@ in level = let level = modeConfig.level; in - if (isInt level) - then level - else helpers.mkRaw "vim.log.levels.${strings.toUpper level}"; + if isNull level + then null + else + ( + if (isInt level) + then level + else helpers.mkRaw "vim.log.levels.${strings.toUpper level}" + ); }) cfg.logger.modes; float_precision = cfg.logger.floatPrecision; @@ -143,7 +148,7 @@ in extraPlugins = [cfg.package]; extraConfigLua = '' - require('nvim-tree').setup(${helpers.toLuaObject options}) + require('neorg').setup(${helpers.toLuaObject options}) ''; }; }