mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 11:14:36 +02:00
helpers: add mkPackageOption + refactoring (#144)
This commit is contained in:
parent
b9a5c9c2b5
commit
b724085447
58 changed files with 94 additions and 258 deletions
|
@ -2,7 +2,7 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.plugins.coq-nvim;
|
||||
helpers = import ../helpers.nix { lib = lib; };
|
||||
helpers = import ../helpers.nix { inherit lib; };
|
||||
plugins = import ../plugin-defs.nix { inherit pkgs; };
|
||||
|
||||
in
|
||||
|
@ -11,11 +11,7 @@ in
|
|||
plugins.coq-nvim = {
|
||||
enable = mkEnableOption "coq-nvim";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.coq-vim;
|
||||
description = "Plugin to use for coq-nvim";
|
||||
};
|
||||
package = helpers.mkPackageOption "coq-nvim" pkgs.vimPlugins.coq-nvim;
|
||||
|
||||
installArtifacts = mkEnableOption "Install coq-artifacts";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue