From 705356d4787ecddfc88629ca7ec5e03a8edb4944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=A9tan=20Lepage?= <33058747+GaetanLepage@users.noreply.github.com> Date: Sat, 25 Feb 2023 19:07:59 +0100 Subject: [PATCH] plugins/neorg: fix typos (#202) * plugins/neorg: fix null handling * plugins/neorg: fix typo in lua code --- plugins/utils/neorg.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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}) ''; }; }