nix-config/modules/home-manager/nvim/which-key.nix

28 lines
728 B
Nix
Raw Normal View History

2024-03-24 17:39:49 -05:00
{
config,
lib,
2024-03-24 17:39:49 -05:00
pkgs,
...
}: {
config = lib.mkIf config.user.nvim.enable {
programs.nixvim = {
opts = {
timeout = true;
timeoutlen = 300;
};
plugins.which-key = {
enable = true;
# TODO: remvoe this once https://github.com/nix-community/nixvim/issues/1901 is fixed.
package = pkgs.vimPlugins.which-key-nvim.overrideAttrs (oldAttrs: {
src = pkgs.fetchFromGitHub {
owner = oldAttrs.src.owner;
repo = oldAttrs.src.repo;
rev = "0539da005b98b02cf730c1d9da82b8e8edb1c2d2"; # v2.1.0
hash = "sha256-gc/WJJ1s4s+hh8Mx8MTDg8pGGNOXxgKqBMwudJtpO4Y=";
};
});
};
2024-03-24 17:39:49 -05:00
};
};
}