mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-23 00:29:48 +01:00
23 lines
420 B
Nix
23 lines
420 B
Nix
|
{
|
||
|
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({})
|
||
|
'';
|
||
|
};
|
||
|
}
|