2024-03-24 23:39:49 +01:00
|
|
|
{
|
2024-05-29 20:40:03 +02:00
|
|
|
config,
|
|
|
|
lib,
|
2024-03-24 23:39:49 +01:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-05-29 20:40:03 +02:00
|
|
|
config = lib.mkIf config.user.nvim.enable {
|
|
|
|
programs.nixvim = {
|
|
|
|
opts = {
|
|
|
|
timeout = true;
|
|
|
|
timeoutlen = 300;
|
|
|
|
};
|
|
|
|
plugins.which-key = {
|
|
|
|
enable = true;
|
2024-07-28 02:11:57 +02:00
|
|
|
# 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-05-29 20:40:03 +02:00
|
|
|
};
|
2024-03-24 23:39:49 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|