1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-17 22:41:13 +01:00

dependencies: drop grepPackage in favor of dependencies.grep

This commit is contained in:
Gaetan Lepage 2025-12-14 15:27:40 +01:00 committed by Gaétan Lepage
parent 6b840886cd
commit e67b4d5896
2 changed files with 16 additions and 17 deletions

View file

@ -1,8 +1,4 @@
{
lib,
pkgs,
...
}:
{ lib, ... }:
lib.nixvim.plugins.mkVimPlugin {
name = "gitgutter";
package = "vim-gitgutter";
@ -11,7 +7,17 @@ lib.nixvim.plugins.mkVimPlugin {
maintainers = [ lib.maintainers.GaetanLepage ];
dependencies = [ "git" ];
dependencies = [
"git"
"grep"
];
imports = [
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "gitgutter";
packageName = "grep";
})
];
extraOptions = {
recommendedSettings = lib.mkOption {
@ -21,10 +27,6 @@ lib.nixvim.plugins.mkVimPlugin {
Set recommended neovim option.
'';
};
grepPackage = lib.mkPackageOption pkgs "gnugrep" {
nullable = true;
};
};
extraConfig = cfg: {
@ -32,10 +34,6 @@ lib.nixvim.plugins.mkVimPlugin {
updatetime = 100;
foldtext = "gitgutter#fold#foldtext";
};
extraPackages = [
cfg.grepPackage
];
};
settingsExample = {