lib/vim-plugin: drop config arg

Instead, access it via an imported module
This commit is contained in:
Matt Sturgeon 2024-09-01 12:36:31 +01:00
parent 9b0e2ba7e5
commit 2a054b039e
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
45 changed files with 67 additions and 102 deletions

View file

@ -1,12 +1,11 @@
{
config,
lib,
helpers,
pkgs,
...
}:
with lib;
helpers.vim-plugin.mkVimPlugin config {
helpers.vim-plugin.mkVimPlugin {
name = "godot";
originalName = "vim-godot";
defaultPackage = pkgs.vimPlugins.vim-godot;

View file

@ -6,7 +6,7 @@
...
}:
with lib;
helpers.vim-plugin.mkVimPlugin config {
helpers.vim-plugin.mkVimPlugin {
name = "haskell-scope-highlighting";
originalName = "haskell-scope-highlighting.nvim";
defaultPackage = pkgs.vimPlugins.haskell-scope-highlighting-nvim;

View file

@ -1,7 +1,6 @@
{
lib,
helpers,
config,
pkgs,
...
}:
@ -37,7 +36,7 @@ let
};
in
with lib;
helpers.vim-plugin.mkVimPlugin config {
helpers.vim-plugin.mkVimPlugin {
name = "julia-cell";
originalName = "vim-julia-cell";
defaultPackage = pkgs.vimPlugins.vim-julia-cell;

View file

@ -1,13 +1,12 @@
{
lib,
config,
helpers,
pkgs,
...
}:
with lib;
with helpers.vim-plugin;
mkVimPlugin config {
mkVimPlugin {
name = "ledger";
originalName = "vim-ledger";
defaultPackage = pkgs.vimPlugins.vim-ledger;

View file

@ -1,13 +1,12 @@
{
lib,
config,
helpers,
pkgs,
...
}:
with lib;
with helpers.vim-plugin;
mkVimPlugin config {
mkVimPlugin {
name = "markdown-preview";
originalName = "markdown-preview.nvim";
defaultPackage = pkgs.vimPlugins.markdown-preview-nvim;

View file

@ -1,11 +1,10 @@
{
config,
lib,
helpers,
pkgs,
...
}:
helpers.vim-plugin.mkVimPlugin config {
helpers.vim-plugin.mkVimPlugin {
name = "nix";
originalName = "vim-nix";
defaultPackage = pkgs.vimPlugins.vim-nix;

View file

@ -1,11 +1,10 @@
{
lib,
helpers,
config,
pkgs,
...
}:
helpers.vim-plugin.mkVimPlugin config {
helpers.vim-plugin.mkVimPlugin {
name = "parinfer-rust";
defaultPackage = pkgs.vimPlugins.parinfer-rust;
globalPrefix = "parinfer_";

View file

@ -1,11 +1,10 @@
{
helpers,
config,
pkgs,
lib,
...
}:
helpers.vim-plugin.mkVimPlugin config {
helpers.vim-plugin.mkVimPlugin {
name = "tagbar";
defaultPackage = pkgs.vimPlugins.tagbar;
globalPrefix = "tagbar_";

View file

@ -1,14 +1,13 @@
{
lib,
helpers,
config,
pkgs,
...
}:
with lib;
# This plugin has no configuration, so we use `mkVimPlugin` without the `globalPrefix` argument to
# avoid the creation of the `settings` option.
helpers.vim-plugin.mkVimPlugin config {
helpers.vim-plugin.mkVimPlugin {
name = "texpresso";
originalName = "texpresso.vim";
defaultPackage = pkgs.vimPlugins.texpresso-vim;

View file

@ -1,12 +1,11 @@
{
lib,
helpers,
config,
pkgs,
...
}:
with lib;
helpers.vim-plugin.mkVimPlugin config {
helpers.vim-plugin.mkVimPlugin {
name = "typst-vim";
originalName = "typst.vim";
defaultPackage = pkgs.vimPlugins.typst-vim;

View file

@ -1,13 +1,12 @@
{
lib,
config,
helpers,
pkgs,
...
}:
with lib;
with helpers.vim-plugin;
mkVimPlugin config {
mkVimPlugin {
name = "vim-slime";
defaultPackage = pkgs.vimPlugins.vim-slime;
globalPrefix = "slime_";

View file

@ -1,12 +1,11 @@
{
lib,
helpers,
config,
pkgs,
...
}:
with lib;
helpers.vim-plugin.mkVimPlugin config {
helpers.vim-plugin.mkVimPlugin {
name = "vimtex";
defaultPackage = pkgs.vimPlugins.vimtex;
globalPrefix = "vimtex_";

View file

@ -1,13 +1,12 @@
{
lib,
config,
helpers,
pkgs,
...
}:
with lib;
with helpers.vim-plugin;
mkVimPlugin config {
mkVimPlugin {
name = "zig";
originalName = "zig.vim";
defaultPackage = pkgs.vimPlugins.zig-vim;