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;
|
||||
|
||||
packages = {
|
||||
ctags.default = "ctags";
|
||||
curl.default = "curl";
|
||||
gcc.default = "gcc";
|
||||
git = {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -53,9 +53,8 @@
|
|||
};
|
||||
|
||||
no-packages = {
|
||||
plugins.tagbar = {
|
||||
enable = true;
|
||||
tagsPackage = null;
|
||||
};
|
||||
plugins.tagbar.enable = true;
|
||||
|
||||
dependencies.ctags.enable = false;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue