notes/neorg, repl/conjure: lazy load by default

This commit is contained in:
Soliprem 2026-03-21 01:51:27 +01:00 committed by Ching Pei Yang
commit 14c5b99543
2 changed files with 36 additions and 8 deletions

View file

@ -4,9 +4,7 @@
...
}: let
inherit (lib.modules) mkIf mkMerge;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.binds) pushDownDefault;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.notes.neorg;
in {
@ -19,17 +17,21 @@ in {
"nvim-nio"
"pathlib-nvim"
"plenary-nvim"
"neorg"
"neorg-telescope"
];
lazy.plugins.neorg = {
package = "neorg";
setupModule = "neorg";
inherit (cfg) setupOpts;
ft = ["norg"];
cmd = ["Neorg"];
};
binds.whichKey.register = pushDownDefault {
"<leader>o" = "+Notes";
};
pluginRC.neorg = entryAnywhere ''
require('neorg').setup(${toLuaObject cfg.setupOpts})
'';
};
}