nix-community.nixvim/plugins/by-name/netman/default.nix
Austin Horstman a7012e7864
treewide: originalName -> packPathName
We used to only think of it as the plugin repo's name, but we have been
needing to use it for the name of the plugin's packpath location.
2024-12-13 21:29:00 -06:00

26 lines
544 B
Nix

{
lib,
...
}:
lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "netman";
packPathName = "netman.nvim";
package = "netman-nvim";
hasSettings = false;
callSetup = false;
maintainers = [ lib.maintainers.khaneliman ];
extraOptions = {
neoTreeIntegration = lib.mkEnableOption "support for netman as a neo-tree source";
};
extraConfig = cfg: {
plugins.netman.luaConfig.content = ''
require("netman")
'';
plugins.neo-tree.extraSources = lib.mkIf cfg.neoTreeIntegration [ "netman.ui.neo-tree" ];
};
}