From 1d0404ff43a4b64335b224bbe43161cb7ce52bf5 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 12 Dec 2024 17:53:25 -0600 Subject: [PATCH] plugins/netman: remove with lib; and helpers --- plugins/by-name/netman/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/by-name/netman/default.nix b/plugins/by-name/netman/default.nix index 20ae205947..b0bfa55755 100644 --- a/plugins/by-name/netman/default.nix +++ b/plugins/by-name/netman/default.nix @@ -1,14 +1,12 @@ { lib, - helpers, config, pkgs, ... }: -with lib; { options.plugins.netman = { - enable = mkEnableOption "netman.nvim, a framework to access remote resources"; + enable = lib.mkEnableOption "netman.nvim, a framework to access remote resources"; package = lib.mkPackageOption pkgs "netman.nvim" { default = [ @@ -17,19 +15,19 @@ with lib; ]; }; - neoTreeIntegration = mkEnableOption "support for netman as a neo-tree source"; + neoTreeIntegration = lib.mkEnableOption "support for netman as a neo-tree source"; }; config = let cfg = config.plugins.netman; in - mkIf cfg.enable { + lib.mkIf cfg.enable { extraPlugins = [ cfg.package ]; extraConfigLua = '' require("netman") ''; - plugins.neo-tree.extraSources = mkIf cfg.neoTreeIntegration [ "netman.ui.neo-tree" ]; + plugins.neo-tree.extraSources = lib.mkIf cfg.neoTreeIntegration [ "netman.ui.neo-tree" ]; }; }