mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-05 18:40:53 +00:00
notes/neorg, repl/conjure: lazy load by default
This commit is contained in:
parent
84fbbc801f
commit
14c5b99543
2 changed files with 36 additions and 8 deletions
|
|
@ -4,9 +4,7 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf mkMerge;
|
inherit (lib.modules) mkIf mkMerge;
|
||||||
inherit (lib.nvim.dag) entryAnywhere;
|
|
||||||
inherit (lib.nvim.binds) pushDownDefault;
|
inherit (lib.nvim.binds) pushDownDefault;
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
|
||||||
|
|
||||||
cfg = config.vim.notes.neorg;
|
cfg = config.vim.notes.neorg;
|
||||||
in {
|
in {
|
||||||
|
|
@ -19,17 +17,21 @@ in {
|
||||||
"nvim-nio"
|
"nvim-nio"
|
||||||
"pathlib-nvim"
|
"pathlib-nvim"
|
||||||
"plenary-nvim"
|
"plenary-nvim"
|
||||||
"neorg"
|
|
||||||
"neorg-telescope"
|
"neorg-telescope"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
lazy.plugins.neorg = {
|
||||||
|
package = "neorg";
|
||||||
|
setupModule = "neorg";
|
||||||
|
inherit (cfg) setupOpts;
|
||||||
|
|
||||||
|
ft = ["norg"];
|
||||||
|
cmd = ["Neorg"];
|
||||||
|
};
|
||||||
|
|
||||||
binds.whichKey.register = pushDownDefault {
|
binds.whichKey.register = pushDownDefault {
|
||||||
"<leader>o" = "+Notes";
|
"<leader>o" = "+Notes";
|
||||||
};
|
};
|
||||||
|
|
||||||
pluginRC.neorg = entryAnywhere ''
|
|
||||||
require('neorg').setup(${toLuaObject cfg.setupOpts})
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,32 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim.startPlugins = [pkgs.vimPlugins.conjure];
|
vim.lazy.plugins.conjure = {
|
||||||
|
package = pkgs.vimPlugins.conjure;
|
||||||
|
ft = [
|
||||||
|
"clojure"
|
||||||
|
"fennel"
|
||||||
|
"janet"
|
||||||
|
"hy"
|
||||||
|
"julia"
|
||||||
|
"racket"
|
||||||
|
"scheme"
|
||||||
|
"lua"
|
||||||
|
"lisp"
|
||||||
|
"python"
|
||||||
|
"rust"
|
||||||
|
"sql"
|
||||||
|
"javascript"
|
||||||
|
"typescript"
|
||||||
|
"php"
|
||||||
|
"r"
|
||||||
|
];
|
||||||
|
cmd = [
|
||||||
|
"ConjureSchool"
|
||||||
|
"ConjureEval"
|
||||||
|
"ConjureConnect"
|
||||||
|
"ConjureClientState"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue