plugins/neorg: fix typos (#202)

* plugins/neorg: fix null handling

* plugins/neorg: fix typo in lua code
This commit is contained in:
Gaétan Lepage
2023-02-25 19:07:59 +01:00
committed by GitHub
parent 1abdc90411
commit 705356d478
+9 -4
View File
@@ -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})
'';
};
}