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,13 +1,12 @@
{
lib,
helpers,
pkgs,
...
}:
helpers.neovim-plugin.mkNeovimPlugin {
name = "cmake-tools";
originalName = "cmake-tools.nvim";
defaultPackage = pkgs.vimPlugins.cmake-tools-nvim;
package = "cmake-tools-nvim";
maintainers = [ helpers.maintainers.NathanFelber ];

View file

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

View file

@ -8,7 +8,7 @@ with lib;
helpers.vim-plugin.mkVimPlugin {
name = "godot";
originalName = "vim-godot";
defaultPackage = pkgs.vimPlugins.vim-godot;
package = "vim-godot";
globalPrefix = "godot_";
maintainers = [ maintainers.GaetanLepage ];

View file

@ -1,6 +1,5 @@
{
lib,
pkgs,
helpers,
config,
...
@ -9,7 +8,7 @@ with lib;
helpers.vim-plugin.mkVimPlugin {
name = "haskell-scope-highlighting";
originalName = "haskell-scope-highlighting.nvim";
defaultPackage = pkgs.vimPlugins.haskell-scope-highlighting-nvim;
package = "haskell-scope-highlighting-nvim";
maintainers = [ lib.maintainers.GaetanLepage ];

View file

@ -1,7 +1,6 @@
{
lib,
helpers,
pkgs,
...
}:
let
@ -39,7 +38,7 @@ with lib;
helpers.vim-plugin.mkVimPlugin {
name = "julia-cell";
originalName = "vim-julia-cell";
defaultPackage = pkgs.vimPlugins.vim-julia-cell;
package = "vim-julia-cell";
globalPrefix = "julia_cell_";
maintainers = [ maintainers.GaetanLepage ];

View file

@ -9,7 +9,7 @@ with helpers.vim-plugin;
mkVimPlugin {
name = "ledger";
originalName = "vim-ledger";
defaultPackage = pkgs.vimPlugins.vim-ledger;
package = "vim-ledger";
globalPrefix = "ledger_";
maintainers = [ maintainers.GaetanLepage ];

View file

@ -2,14 +2,13 @@
lib,
helpers,
config,
pkgs,
...
}:
with lib;
helpers.neovim-plugin.mkNeovimPlugin {
name = "ltex-extra";
originalName = "ltex_extra.nvim";
defaultPackage = pkgs.vimPlugins.ltex_extra-nvim;
package = "ltex_extra-nvim";
maintainers = [ maintainers.loicreynier ];

View file

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

View file

@ -1,7 +1,6 @@
{
lib,
helpers,
pkgs,
...
}:
with lib;
@ -9,7 +8,7 @@ with helpers.vim-plugin;
mkVimPlugin {
name = "markdown-preview";
originalName = "markdown-preview.nvim";
defaultPackage = pkgs.vimPlugins.markdown-preview-nvim;
package = "markdown-preview-nvim";
globalPrefix = "mkdp_";
maintainers = [ maintainers.GaetanLepage ];

View file

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

View file

@ -1,14 +1,13 @@
{
lib,
helpers,
pkgs,
...
}:
with lib;
helpers.neovim-plugin.mkNeovimPlugin {
name = "preview";
originalName = "Preview.nvim";
defaultPackage = pkgs.vimPlugins.Preview-nvim;
package = "Preview-nvim";
hasSettings = false;

View file

@ -1,13 +1,12 @@
{
lib,
helpers,
pkgs,
...
}:
helpers.vim-plugin.mkVimPlugin {
name = "nix";
originalName = "vim-nix";
defaultPackage = pkgs.vimPlugins.vim-nix;
package = "vim-nix";
maintainers = [ lib.maintainers.GaetanLepage ];
}

View file

@ -1,6 +1,5 @@
{
lib,
pkgs,
...
}:
let
@ -9,7 +8,6 @@ in
lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "orgmode";
originalName = "nvim-orgmode";
defaultPackage = pkgs.vimPlugins.orgmode;
maintainers = [ lib.nixvim.maintainers.refaelsh ];

View file

@ -2,13 +2,12 @@
lib,
helpers,
config,
pkgs,
...
}:
helpers.neovim-plugin.mkNeovimPlugin {
name = "otter";
originalName = "otter.nvim";
defaultPackage = pkgs.vimPlugins.otter-nvim;
package = "otter-nvim";
maintainers = [ lib.maintainers.perchun ];

View file

@ -1,12 +1,10 @@
{
lib,
helpers,
pkgs,
...
}:
helpers.vim-plugin.mkVimPlugin {
name = "parinfer-rust";
defaultPackage = pkgs.vimPlugins.parinfer-rust;
globalPrefix = "parinfer_";
maintainers = [ lib.maintainers.GaetanLepage ];

View file

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

View file

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

View file

@ -8,7 +8,6 @@
with lib;
helpers.neovim-plugin.mkNeovimPlugin {
name = "rustaceanvim";
defaultPackage = pkgs.vimPlugins.rustaceanvim;
maintainers = [ maintainers.GaetanLepage ];

View file

@ -1,13 +1,11 @@
{
lib,
helpers,
pkgs,
...
}:
with lib;
helpers.neovim-plugin.mkNeovimPlugin {
name = "sniprun";
defaultPackage = pkgs.vimPlugins.sniprun;
url = "https://github.com/michaelb/sniprun";
maintainers = with maintainers; [

View file

@ -6,7 +6,6 @@
}:
helpers.vim-plugin.mkVimPlugin {
name = "tagbar";
defaultPackage = pkgs.vimPlugins.tagbar;
globalPrefix = "tagbar_";
extraPackages = [ pkgs.ctags ];

View file

@ -10,7 +10,7 @@ with lib;
helpers.vim-plugin.mkVimPlugin {
name = "texpresso";
originalName = "texpresso.vim";
defaultPackage = pkgs.vimPlugins.texpresso-vim;
package = "texpresso-vim";
maintainers = [ maintainers.nickhu ];

View file

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

View file

@ -10,7 +10,7 @@ helpers.neovim-plugin.mkNeovimPlugin {
name = "treesitter";
originalName = "nvim-treesitter";
luaName = "nvim-treesitter.configs";
defaultPackage = pkgs.vimPlugins.nvim-treesitter;
package = "nvim-treesitter";
description = ''
Provides an interface to [tree-sitter]

View file

@ -2,7 +2,6 @@
lib,
helpers,
config,
pkgs,
...
}:
with lib;
@ -10,7 +9,7 @@ helpers.neovim-plugin.mkNeovimPlugin {
name = "ts-autotag";
originalName = "nvim-ts-autotag";
luaName = "nvim-ts-autotag";
defaultPackage = pkgs.vimPlugins.nvim-ts-autotag;
package = "nvim-ts-autotag";
maintainers = [ maintainers.GaetanLepage ];

View file

@ -8,7 +8,6 @@ with lib;
helpers.vim-plugin.mkVimPlugin {
name = "typst-vim";
originalName = "typst.vim";
defaultPackage = pkgs.vimPlugins.typst-vim;
globalPrefix = "typst_";
# Add the typst compiler to nixvim packages

View file

@ -1,14 +1,12 @@
{
lib,
helpers,
pkgs,
...
}:
with lib;
with helpers.vim-plugin;
mkVimPlugin {
name = "vim-slime";
defaultPackage = pkgs.vimPlugins.vim-slime;
globalPrefix = "slime_";
maintainers = [ maintainers.GaetanLepage ];

View file

@ -7,7 +7,6 @@
with lib;
helpers.vim-plugin.mkVimPlugin {
name = "vimtex";
defaultPackage = pkgs.vimPlugins.vimtex;
globalPrefix = "vimtex_";
maintainers = [ maintainers.GaetanLepage ];

View file

@ -1,7 +1,6 @@
{
lib,
helpers,
pkgs,
...
}:
with lib;
@ -9,7 +8,7 @@ with helpers.vim-plugin;
mkVimPlugin {
name = "zig";
originalName = "zig.vim";
defaultPackage = pkgs.vimPlugins.zig-vim;
package = "zig-vim";
globalPrefix = "zig_";
maintainers = [ maintainers.GaetanLepage ];