plugins: migrate defaultPackage -> package

Migrate all users of `mkVimPlugin` and `mkNeovimPlugin` to use the new
`package` argument instead of the old `defaultPackage` argument.
This commit is contained in:
Matt Sturgeon 2024-09-02 14:05:11 +01:00
parent 285f6cbd7b
commit 1fd4b6c739
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
148 changed files with 126 additions and 277 deletions

View file

@ -1,6 +1,5 @@
{
lib,
pkgs,
...
}:
let
@ -11,7 +10,6 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "conform-nvim";
luaName = "conform";
originalName = "conform.nvim";
defaultPackage = pkgs.vimPlugins.conform-nvim;
maintainers = [ lib.maintainers.khaneliman ];

View file

@ -1,7 +1,6 @@
{
lib,
helpers,
pkgs,
...
}:
with lib;
@ -9,7 +8,7 @@ helpers.neovim-plugin.mkNeovimPlugin {
name = "lsp-lines";
luaName = "lsp_lines";
originalName = "lsp_lines.nvim";
defaultPackage = pkgs.vimPlugins.lsp_lines-nvim;
package = "lsp_lines-nvim";
# This plugin has no settings; it is configured via vim.diagnostic.config
hasSettings = false;

View file

@ -2,14 +2,13 @@
lib,
helpers,
config,
pkgs,
...
}:
with lib;
helpers.neovim-plugin.mkNeovimPlugin {
name = "lsp-status";
originalName = "lsp-status.nvim";
defaultPackage = pkgs.vimPlugins.lsp-status-nvim;
package = "lsp-status-nvim";
maintainers = [ helpers.maintainers.b3nb5n ];
settingsOptions =

View file

@ -1,13 +1,11 @@
{
lib,
helpers,
pkgs,
...
}:
with lib;
helpers.neovim-plugin.mkNeovimPlugin {
name = "nvim-lightbulb";
defaultPackage = pkgs.vimPlugins.nvim-lightbulb;
maintainers = [ maintainers.GaetanLepage ];

View file

@ -2,14 +2,13 @@
lib,
helpers,
config,
pkgs,
...
}:
with lib;
helpers.vim-plugin.mkVimPlugin {
name = "schemastore";
originalName = "SchemaStore.nvim";
defaultPackage = pkgs.vimPlugins.SchemaStore-nvim;
package = "SchemaStore-nvim";
maintainers = [ maintainers.GaetanLepage ];

View file

@ -8,7 +8,7 @@ with lib;
helpers.neovim-plugin.mkNeovimPlugin {
name = "trouble";
originalName = "trouble-nvim";
defaultPackage = pkgs.vimPlugins.trouble-nvim;
package = "trouble-nvim";
maintainers = [ maintainers.loicreynier ];