mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 04:35:08 +02:00
plugins: remove all uses of lib.nixvim.mkPluginPackageOption
This commit is contained in:
parent
ae3a2c9d10
commit
7409e80bd2
77 changed files with 462 additions and 77 deletions
|
@ -15,7 +15,12 @@ in
|
|||
options.plugins.hmts = {
|
||||
enable = mkEnableOption "hmts.nvim";
|
||||
|
||||
package = helpers.mkPluginPackageOption "hmts.nvim" pkgs.vimPlugins.hmts-nvim;
|
||||
package = lib.mkPackageOption pkgs "hmts.nvim" {
|
||||
default = [
|
||||
"vimPlugins"
|
||||
"hmts-nvim"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
|
@ -10,7 +10,12 @@ with lib;
|
|||
options.plugins.rainbow-delimiters = helpers.neovim-plugin.extraOptionsOptions // {
|
||||
enable = mkEnableOption "rainbow-delimiters.nvim";
|
||||
|
||||
package = helpers.mkPluginPackageOption "rainbow-delimiters.nvim" pkgs.vimPlugins.rainbow-delimiters-nvim;
|
||||
package = lib.mkPackageOption pkgs "rainbow-delimiters.nvim" {
|
||||
default = [
|
||||
"vimPlugins"
|
||||
"rainbow-delimiters-nvim"
|
||||
];
|
||||
};
|
||||
|
||||
strategy = helpers.defaultNullOpts.mkAttrsOf' {
|
||||
type = types.enum [
|
||||
|
|
|
@ -18,7 +18,12 @@ with lib;
|
|||
{
|
||||
enable = mkEnableOption "treesitter-refactor (requires plugins.treesitter.enable to be true)";
|
||||
|
||||
package = helpers.mkPluginPackageOption "treesitter-refactor" pkgs.vimPlugins.nvim-treesitter-refactor;
|
||||
package = lib.mkPackageOption pkgs "treesitter-refactor" {
|
||||
default = [
|
||||
"vimPlugins"
|
||||
"nvim-treesitter-refactor"
|
||||
];
|
||||
};
|
||||
|
||||
highlightDefinitions = {
|
||||
inherit disable;
|
||||
|
|
|
@ -41,7 +41,12 @@ with lib;
|
|||
// {
|
||||
enable = mkEnableOption "treesitter-textobjects (requires plugins.treesitter.enable to be true)";
|
||||
|
||||
package = helpers.mkPluginPackageOption "treesitter-textobjects" pkgs.vimPlugins.nvim-treesitter-textobjects;
|
||||
package = lib.mkPackageOption pkgs "treesitter-textobjects" {
|
||||
default = [
|
||||
"vimPlugins"
|
||||
"nvim-treesitter-textobjects"
|
||||
];
|
||||
};
|
||||
|
||||
select = {
|
||||
enable = helpers.defaultNullOpts.mkBool false ''
|
||||
|
|
|
@ -10,7 +10,12 @@ with lib;
|
|||
options.plugins.ts-context-commentstring = helpers.neovim-plugin.extraOptionsOptions // {
|
||||
enable = mkEnableOption "nvim-ts-context-commentstring";
|
||||
|
||||
package = helpers.mkPluginPackageOption "ts-context-commentstring" pkgs.vimPlugins.nvim-ts-context-commentstring;
|
||||
package = lib.mkPackageOption pkgs "ts-context-commentstring" {
|
||||
default = [
|
||||
"vimPlugins"
|
||||
"nvim-ts-context-commentstring"
|
||||
];
|
||||
};
|
||||
|
||||
skipTsContextCommentStringModule = mkOption {
|
||||
type = types.bool;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue