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

@ -145,7 +145,12 @@ in
plugins.fidget = helpers.neovim-plugin.extraOptionsOptions // {
enable = mkEnableOption "fidget-nvim";
package = helpers.mkPluginPackageOption "fidget-nvim" pkgs.vimPlugins.fidget-nvim;
package = lib.mkPackageOption pkgs "fidget-nvim" {
default = [
"vimPlugins"
"fidget-nvim"
];
};
# Options related to LSP progress subsystem
progress = {

View file

@ -10,7 +10,12 @@ with lib;
options.plugins.inc-rename = {
enable = mkEnableOption "inc-rename, a plugin previewing LSP renaming";
package = helpers.mkPluginPackageOption "inc-rename" pkgs.vimPlugins.inc-rename-nvim;
package = lib.mkPackageOption pkgs "inc-rename" {
default = [
"vimPlugins"
"inc-rename-nvim"
];
};
cmdName = helpers.defaultNullOpts.mkStr "IncRename" "the name of the command";

View file

@ -13,7 +13,12 @@ in
options.plugins.efmls-configs = {
enable = lib.mkEnableOption "efmls-configs, premade configurations for efm-langserver";
package = helpers.mkPluginPackageOption "efmls-configs-nvim" pkgs.vimPlugins.efmls-configs-nvim;
package = lib.mkPackageOption pkgs "efmls-configs-nvim" {
default = [
"vimPlugins"
"efmls-configs-nvim"
];
};
externallyManagedPackages = lib.mkOption {
type = with lib.types; either (enum [ "all" ]) (listOf str);

View file

@ -13,7 +13,12 @@ in
options.plugins.lsp-format = helpers.neovim-plugin.extraOptionsOptions // {
enable = mkEnableOption "lsp-format.nvim";
package = helpers.mkPluginPackageOption "lsp-format.nvim" pkgs.vimPlugins.lsp-format-nvim;
package = lib.mkPackageOption pkgs "lsp-format.nvim" {
default = [
"vimPlugins"
"lsp-format-nvim"
];
};
setup = mkOption {
type =

View file

@ -49,7 +49,12 @@ in
plugins.lspsaga = helpers.neovim-plugin.extraOptionsOptions // {
enable = mkEnableOption "lspsaga.nvim";
package = helpers.mkPluginPackageOption "lspsaga" pkgs.vimPlugins.lspsaga-nvim;
package = lib.mkPackageOption pkgs "lspsaga" {
default = [
"vimPlugins"
"lspsaga-nvim"
];
};
iconsPackage = lib.mkPackageOption pkgs [
"vimPlugins"

View file

@ -31,7 +31,12 @@ in
plugins.wtf = helpers.neovim-plugin.extraOptionsOptions // {
enable = mkEnableOption "wtf.nvim";
package = helpers.mkPluginPackageOption "wtf.nvim" pkgs.vimPlugins.wtf-nvim;
package = lib.mkPackageOption pkgs "wtf.nvim" {
default = [
"vimPlugins"
"wtf-nvim"
];
};
keymaps = mapAttrs (
action: defaults: