mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/dependencies: add ctags
This commit is contained in:
parent
cfb56d1ed3
commit
07c767cd2f
3 changed files with 14 additions and 14 deletions
|
@ -8,6 +8,7 @@ let
|
||||||
cfg = config.dependencies;
|
cfg = config.dependencies;
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
|
ctags.default = "ctags";
|
||||||
curl.default = "curl";
|
curl.default = "curl";
|
||||||
gcc.default = "gcc";
|
gcc.default = "gcc";
|
||||||
git = {
|
git = {
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
{
|
{
|
||||||
helpers,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
@ -12,6 +10,14 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
# TODO introduced 2024-02-12: remove 2024-04-12
|
# TODO introduced 2024-02-12: remove 2024-04-12
|
||||||
deprecateExtraConfig = true;
|
deprecateExtraConfig = true;
|
||||||
|
imports = [
|
||||||
|
# TODO: added 2025-04-07, remove after 25.05
|
||||||
|
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||||
|
plugin = "tagbar";
|
||||||
|
packageName = "ctags";
|
||||||
|
oldPackageName = "tags";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
position = "right";
|
position = "right";
|
||||||
|
@ -30,13 +36,7 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOptions = {
|
extraConfig = {
|
||||||
tagsPackage = lib.mkPackageOption pkgs "ctags" {
|
dependencies.ctags.enable = lib.mkDefault true;
|
||||||
nullable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = cfg: {
|
|
||||||
extraPackages = [ cfg.tagsPackage ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,9 +53,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
no-packages = {
|
no-packages = {
|
||||||
plugins.tagbar = {
|
plugins.tagbar.enable = true;
|
||||||
enable = true;
|
|
||||||
tagsPackage = null;
|
dependencies.ctags.enable = false;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue