mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
plugins/treesitter: use mkPackageOption
This commit is contained in:
parent
2132702a47
commit
e26f044339
1 changed files with 11 additions and 26 deletions
|
@ -303,16 +303,11 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
folding = mkEnableOption "tree-sitter based folding";
|
folding = mkEnableOption "tree-sitter based folding";
|
||||||
|
|
||||||
gccPackage = helpers.mkPackageOption {
|
gccPackage = lib.mkPackageOption pkgs "gcc" {
|
||||||
name = "gcc";
|
nullable = true;
|
||||||
default = pkgs.gcc;
|
example = "pkgs.gcc14";
|
||||||
defaultText = literalExpression "pkgs.gcc";
|
extraDescription = ''
|
||||||
example = literalExpression "pkgs.gcc14";
|
|
||||||
description = ''
|
|
||||||
Which package (if any) to be added as the GCC compiler.
|
|
||||||
|
|
||||||
This is required to build grammars if you are not using `nixGrammars`.
|
This is required to build grammars if you are not using `nixGrammars`.
|
||||||
To disable the installation of GCC, set this option to `null`.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -358,28 +353,18 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
description = "Whether to enable Nixvim injections, e.g. highlighting `extraConfigLua` as lua.";
|
description = "Whether to enable Nixvim injections, e.g. highlighting `extraConfigLua` as lua.";
|
||||||
};
|
};
|
||||||
|
|
||||||
nodejsPackage = helpers.mkPackageOption {
|
nodejsPackage = lib.mkPackageOption pkgs "nodejs" {
|
||||||
name = "nodejs";
|
nullable = true;
|
||||||
default = pkgs.nodejs;
|
example = "pkgs.nodejs_22";
|
||||||
defaultText = literalExpression "pkgs.nodejs";
|
extraDescription = ''
|
||||||
example = literalExpression "pkgs.nodejs_22";
|
|
||||||
description = ''
|
|
||||||
Which package (if any) to be added as the nodejs package.
|
|
||||||
|
|
||||||
This is required to build grammars if you are not using `nixGrammars`.
|
This is required to build grammars if you are not using `nixGrammars`.
|
||||||
To disable the installation of NodeJS, set this option to `null`.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
treesitterPackage = helpers.mkPackageOption {
|
treesitterPackage = lib.mkPackageOption pkgs "tree-sitter" {
|
||||||
name = "tree-sitter";
|
nullable = true;
|
||||||
default = pkgs.tree-sitter;
|
extraDescription = ''
|
||||||
defaultText = literalExpression "pkgs.tree-sitter";
|
|
||||||
description = ''
|
|
||||||
Which package (if any) to be added as the tree-sitter binary.
|
|
||||||
|
|
||||||
This is required to build grammars if you are not using `nixGrammars`.
|
This is required to build grammars if you are not using `nixGrammars`.
|
||||||
To disable the installation of tree-sitter, set this option to `null`.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue