mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-31 15:30:27 +02:00
helpers: add mkPackageOption + refactoring
This commit is contained in:
parent
66b1b099cf
commit
ff2be33445
58 changed files with 94 additions and 258 deletions
|
@ -2,6 +2,7 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.plugins.commentary;
|
||||
helpers = import ../helpers.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
# TODO Add support for aditional filetypes. This requires autocommands!
|
||||
|
@ -10,11 +11,7 @@ in
|
|||
plugins.commentary = {
|
||||
enable = mkEnableOption "commentary";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.vim-commentary;
|
||||
description = "Plugin to use for vim-commentary";
|
||||
};
|
||||
package = helpers.mkPackageOption "commentary" pkgs.vimPlugins.vim-commentary;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue