neovim-flake/modules/plugins/utility/binds/cheatsheet/config.nix

24 lines
474 B
Nix
Raw Normal View History

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