plugins/netman: migrate to mkNeovimPlugin

This commit is contained in:
Austin Horstman 2024-12-12 17:59:46 -06:00
parent 1d0404ff43
commit d99bc6ebad
No known key found for this signature in database

View file

@ -1,30 +1,23 @@
{
lib,
config,
pkgs,
...
}:
{
options.plugins.netman = {
enable = lib.mkEnableOption "netman.nvim, a framework to access remote resources";
lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "netman";
originalName = "netman.nvim";
package = "netman-nvim";
package = lib.mkPackageOption pkgs "netman.nvim" {
default = [
"vimPlugins"
"netman-nvim"
];
};
hasSettings = false;
callSetup = false;
maintainers = [ lib.maintainers.khaneliman ];
extraOptions = {
neoTreeIntegration = lib.mkEnableOption "support for netman as a neo-tree source";
};
config =
let
cfg = config.plugins.netman;
in
lib.mkIf cfg.enable {
extraPlugins = [ cfg.package ];
extraConfigLua = ''
extraConfig = cfg: {
plugins.netman.luaConfig.content = ''
require("netman")
'';