2023-03-17 10:00:22 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-06 15:04:08 +01:00
|
|
|
}:
|
2024-12-22 09:58:27 +00:00
|
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
2024-12-12 17:59:46 -06:00
|
|
|
name = "netman";
|
2024-12-13 08:27:14 -06:00
|
|
|
packPathName = "netman.nvim";
|
2024-12-12 17:59:46 -06:00
|
|
|
package = "netman-nvim";
|
|
|
|
|
|
|
|
hasSettings = false;
|
|
|
|
callSetup = false;
|
2023-03-26 15:44:45 +02:00
|
|
|
|
2024-12-12 17:59:46 -06:00
|
|
|
maintainers = [ lib.maintainers.khaneliman ];
|
2023-03-17 10:00:22 +01:00
|
|
|
|
2024-12-12 17:59:46 -06:00
|
|
|
extraOptions = {
|
2024-12-12 17:53:25 -06:00
|
|
|
neoTreeIntegration = lib.mkEnableOption "support for netman as a neo-tree source";
|
2023-11-06 15:04:08 +01:00
|
|
|
};
|
2023-03-17 10:00:22 +01:00
|
|
|
|
2024-12-12 17:59:46 -06:00
|
|
|
extraConfig = cfg: {
|
|
|
|
plugins.netman.luaConfig.content = ''
|
|
|
|
require("netman")
|
|
|
|
'';
|
2023-03-17 10:00:22 +01:00
|
|
|
|
2024-12-12 17:59:46 -06:00
|
|
|
plugins.neo-tree.extraSources = lib.mkIf cfg.neoTreeIntegration [ "netman.ui.neo-tree" ];
|
|
|
|
};
|
2023-11-06 15:04:08 +01:00
|
|
|
}
|