plugins/tagbar: use tagsPackage

This commit is contained in:
Austin Horstman 2024-09-14 11:21:39 -05:00
parent 0e9b8351da
commit 068f5e97fc
No known key found for this signature in database
2 changed files with 17 additions and 1 deletions

View file

@ -7,7 +7,6 @@
helpers.vim-plugin.mkVimPlugin { helpers.vim-plugin.mkVimPlugin {
name = "tagbar"; name = "tagbar";
globalPrefix = "tagbar_"; globalPrefix = "tagbar_";
extraPackages = [ pkgs.ctags ];
maintainers = [ lib.maintainers.GaetanLepage ]; maintainers = [ lib.maintainers.GaetanLepage ];
@ -30,4 +29,14 @@ helpers.vim-plugin.mkVimPlugin {
private = "󰛑 "; private = "󰛑 ";
}; };
}; };
extraOptions = {
tagsPackage = lib.mkPackageOption pkgs "ctags" {
nullable = true;
};
};
extraConfig = cfg: {
extraPackages = [ cfg.tagsPackage ];
};
} }

View file

@ -51,4 +51,11 @@
}; };
}; };
}; };
no-packages = {
plugins.tagbar = {
enable = true;
tagsPackage = null;
};
};
} }