mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +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,17 +2,13 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.plugins.luasnip;
|
||||
helpers = import ../../helpers.nix { lib = lib; };
|
||||
helpers = import ../../helpers.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
options.plugins.luasnip = {
|
||||
enable = mkEnableOption "Enable luasnip";
|
||||
|
||||
package = mkOption {
|
||||
default = pkgs.vimPlugins.luasnip;
|
||||
type = types.package;
|
||||
description = "Plugin to use for luasnip";
|
||||
};
|
||||
package = helpers.mkPackageOption "luasnip" pkgs.vimPlugins.luasnip;
|
||||
|
||||
fromVscode = mkOption {
|
||||
default = [ ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue