mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-27 18:39:48 +01:00
21 lines
367 B
Nix
21 lines
367 B
Nix
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
with lib;
|
||
|
with builtins; let
|
||
|
cfg = config.vim.binds.whichKey;
|
||
|
in {
|
||
|
options.vim.binds.whichKey = {
|
||
|
enable = mkEnableOption "which-key menu";
|
||
|
};
|
||
|
|
||
|
config = mkIf (cfg.enable) {
|
||
|
vim.startPlugins = ["which-key"];
|
||
|
|
||
|
vim.luaConfigRC.whichkey = nvim.dag.entryAnywhere ''local wk = require("which-key").setup {}'';
|
||
|
};
|
||
|
}
|