plugins: remove all uses of lib.nixvim.mkPluginPackageOption

This commit is contained in:
Matt Sturgeon 2024-09-04 22:00:43 +01:00
parent ae3a2c9d10
commit 7409e80bd2
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
77 changed files with 462 additions and 77 deletions

View file

@ -86,7 +86,12 @@ in
// {
enable = mkEnableOption "diffview";
package = helpers.mkPluginPackageOption "diffview" pkgs.vimPlugins.diffview-nvim;
package = lib.mkPackageOption pkgs "diffview" {
default = [
"vimPlugins"
"diffview-nvim"
];
};
iconsPackage = lib.mkPackageOption pkgs [
"vimPlugins"

View file

@ -14,7 +14,12 @@ in
plugins.git-worktree = {
enable = mkEnableOption "git-worktree";
package = helpers.mkPluginPackageOption "git-worktree" pkgs.vimPlugins.git-worktree-nvim;
package = lib.mkPackageOption pkgs "git-worktree" {
default = [
"vimPlugins"
"git-worktree-nvim"
];
};
gitPackage = lib.mkPackageOption pkgs "git" {
nullable = true;

View file

@ -14,7 +14,12 @@ in
plugins.gitgutter = {
enable = mkEnableOption "gitgutter";
package = helpers.mkPluginPackageOption "gitgutter" pkgs.vimPlugins.gitgutter;
package = lib.mkPackageOption pkgs "gitgutter" {
default = [
"vimPlugins"
"gitgutter"
];
};
gitPackage = lib.mkPackageOption pkgs "git" {
nullable = true;

View file

@ -10,7 +10,12 @@ with lib;
options.plugins.gitlinker = helpers.neovim-plugin.extraOptionsOptions // {
enable = mkEnableOption "gitlinker.nvim";
package = helpers.mkPluginPackageOption "gitlinker.nvim" pkgs.vimPlugins.gitlinker-nvim;
package = lib.mkPackageOption pkgs "gitlinker.nvim" {
default = [
"vimPlugins"
"gitlinker-nvim"
];
};
remote = helpers.mkNullOrOption types.str "Force the use of a specific remote.";

View file

@ -12,7 +12,12 @@ with lib;
options.plugins.gitmessenger = {
enable = mkEnableOption "gitmessenger";
package = helpers.mkPluginPackageOption "git-messenger" pkgs.vimPlugins.git-messenger-vim;
package = lib.mkPackageOption pkgs "git-messenger" {
default = [
"vimPlugins"
"git-messenger-vim"
];
};
closeOnCursorMoved = helpers.defaultNullOpts.mkBool true ''
A popup window is no longer closed automatically when moving a cursor after the window is