mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-05 04:51:14 +00:00
24 lines
474 B
Nix
24 lines
474 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.strings) optionalString;
|
|
|
|
cfg = config.vim.binds.cheatsheet;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim.lazy.plugins = [
|
|
{
|
|
package = "cheatsheet-nvim";
|
|
setupModule = "cheatsheet";
|
|
setupOpts = {};
|
|
cmd = ["Cheatsheet" "CheatsheetEdit"];
|
|
|
|
before = optionalString config.vim.lazy.enable "require('lz.n').trigger_load('telescope')";
|
|
}
|
|
];
|
|
};
|
|
}
|