nvf/modules/plugins/utility/binds/cheatsheet/config.nix

22 lines
464 B
Nix
Raw Normal View History

{
config,
lib,
...
}: let
2024-03-24 00:14:39 +00:00
inherit (lib.modules) mkIf;
2024-09-30 19:59:00 +00:00
inherit (lib.strings) optionalString;
cfg = config.vim.binds.cheatsheet;
in {
config = mkIf cfg.enable {
2024-10-17 15:17:18 +00:00
vim.lazy.plugins.cheatsheet-nvim = {
package = "cheatsheet-nvim";
setupModule = "cheatsheet";
setupOpts = {};
cmd = ["Cheatsheet" "CheatsheetEdit"];
2024-10-17 15:17:18 +00:00
before = optionalString config.vim.lazy.enable "require('lz.n').trigger_load('telescope')";
};
};
}