mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
26 lines
538 B
Nix
26 lines
538 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
lib.nixvim.plugins.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" ];
|
|
};
|
|
}
|