modules/dependencies: add ctags

This commit is contained in:
Gaetan Lepage 2025-04-07 17:16:13 +02:00 committed by nix-infra-bot
parent cfb56d1ed3
commit 07c767cd2f
3 changed files with 14 additions and 14 deletions

View file

@ -8,6 +8,7 @@ let
cfg = config.dependencies;
packages = {
ctags.default = "ctags";
curl.default = "curl";
gcc.default = "gcc";
git = {

View file

@ -1,6 +1,4 @@
{
helpers,
pkgs,
lib,
...
}:
@ -12,6 +10,14 @@ lib.nixvim.plugins.mkVimPlugin {
# TODO introduced 2024-02-12: remove 2024-04-12
deprecateExtraConfig = true;
imports = [
# TODO: added 2025-04-07, remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "tagbar";
packageName = "ctags";
oldPackageName = "tags";
})
];
settingsExample = {
position = "right";
@ -30,13 +36,7 @@ lib.nixvim.plugins.mkVimPlugin {
};
};
extraOptions = {
tagsPackage = lib.mkPackageOption pkgs "ctags" {
nullable = true;
};
};
extraConfig = cfg: {
extraPackages = [ cfg.tagsPackage ];
extraConfig = {
dependencies.ctags.enable = lib.mkDefault true;
};
}

View file

@ -53,9 +53,8 @@
};
no-packages = {
plugins.tagbar = {
enable = true;
tagsPackage = null;
};
plugins.tagbar.enable = true;
dependencies.ctags.enable = false;
};
}