feat: relocate whichkey and add cheatsheet.nvim

This commit is contained in:
NotAShelf 2023-02-04 01:46:34 +03:00
commit 94be9167d2
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
10 changed files with 144 additions and 87 deletions

View file

@ -0,0 +1,22 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.binds.cheatsheet;
in {
options.vim.binds.cheatsheet = {
enable = mkEnableOption "Searchable cheatsheet for nvim using telescope";
};
config = mkIf (cfg.enable) {
vim.startPlugins = ["cheatsheet-nvim"];
vim.luaConfigRC.cheaetsheet-nvim = nvim.dag.entryAnywhere ''
require('cheatsheet').setup({})
'';
};
}