nixvim: update helper library usage

Hope nothing like this ever happen again. It's a pain to track where
errors are coming from when debugging nixpkgs modules. T_T
This commit is contained in:
Gabriel Arazas 2024-05-26 16:03:18 +08:00
parent 9a5e6cb7f6
commit ac4b36d550
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
5 changed files with 7 additions and 5 deletions

View File

@ -7,7 +7,7 @@ in
options.plugins.dressing-nvim = {
enable = lib.mkEnableOption "dressing.nvim configuration";
package = helpers.mkPackageOption "dressing.nvim" pkgs.vimPlugins.dressing-nvim;
package = helpers.mkPluginPackageOption "dressing.nvim" pkgs.vimPlugins.dressing-nvim;
settings = lib.mkOption {
type = with lib.types; attrsOf anything;

View File

@ -6,7 +6,9 @@ in
{
options.plugins.firenvim = {
enable = lib.mkEnableOption "Firenvim";
package = helpers.mkPackageOption "firenvim" pkgs.vimPlugins.firenvim;
package = helpers.mkPluginPackageOption "firenvim" pkgs.vimPlugins.firenvim;
settings = lib.mkOption {
type = with lib.types; attrsOf anything;
default = { };

View File

@ -9,7 +9,7 @@ in
options.plugins.legendary-nvim = {
enable = lib.mkEnableOption "legendary.nvim";
package = helpers.mkPackageOption "legendary.nvim" pkgs.vimPlugins.legendary-nvim;
package = helpers.mkPluginPackageOption "legendary.nvim" pkgs.vimPlugins.legendary-nvim;
additionalSetup = mkEnableOption' "dependencies for additional features like frecency sorting";

View File

@ -61,7 +61,7 @@ in
options.colorschemes.lush = {
enable = lib.mkEnableOption "theming with lush.nvim";
package = helpers.mkPackageOption "lush.nvim" pkgs.vimPlugins.lush-nvim;
package = helpers.mkPluginPackageOption "lush.nvim" pkgs.vimPlugins.lush-nvim;
extraConfigLua = lib.mkOption {
type = lib.types.lines;

View File

@ -8,7 +8,7 @@ in
helpers.neovim-plugin.extraOptionsOptions // {
enable = lib.mkEnableOption "nvim-config-local";
package = helpers.mkPackageOption "nvim-config-local" pkgs.vimPlugins.nvim-config-local;
package = helpers.mkPluginPackageOption "nvim-config-local" pkgs.vimPlugins.nvim-config-local;
configFiles = lib.mkOption {
type = with lib.types; listOf str;