mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-22 03:18:01 +00:00
cheatsheet: lazy load
This commit is contained in:
parent
bb2b3ff225
commit
127ae0200d
1 changed files with 10 additions and 5 deletions
|
@ -4,15 +4,20 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.nvim.dag) entryAnywhere;
|
inherit (lib.strings) optionalString;
|
||||||
|
|
||||||
cfg = config.vim.binds.cheatsheet;
|
cfg = config.vim.binds.cheatsheet;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim.startPlugins = ["cheatsheet-nvim"];
|
vim.lazy.plugins = [
|
||||||
|
{
|
||||||
|
package = "cheatsheet-nvim";
|
||||||
|
setupModule = "cheatsheet";
|
||||||
|
setupOpts = {};
|
||||||
|
cmd = ["Cheatsheet" "CheatsheetEdit"];
|
||||||
|
|
||||||
vim.pluginRC.cheaetsheet-nvim = entryAnywhere ''
|
before = optionalString config.vim.lazy.enable "require('lz.n').trigger_load('telescope')";
|
||||||
require('cheatsheet').setup({})
|
}
|
||||||
'';
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue