helpers: add mkPackageOption + refactoring

This commit is contained in:
Gaetan Lepage 2023-01-23 23:50:20 +01:00
parent 66b1b099cf
commit ff2be33445
58 changed files with 94 additions and 258 deletions

View file

@ -2,18 +2,14 @@
with lib;
let
cfg = config.plugins.lspsaga;
helpers = import ../helpers.nix { lib = lib; };
helpers = import ../helpers.nix { inherit lib; };
in
{
options = {
plugins.lspsaga = {
enable = mkEnableOption "lspsaga.nvim";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.lspsaga-nvim;
description = "Plugin to use for lspsaga.nvim";
};
package = helpers.mkPackageOption "lspsaga" pkgs.vimPlugins.lspsaga-nvim;
signs = {
use = mkOption {