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,7 +1,6 @@
{
lib,
helpers,
config,
pkgs,
...
}:
@ -13,7 +12,7 @@
imports ? [ ],
...
}@args:
helpers.vim-plugin.mkVimPlugin config (
helpers.vim-plugin.mkVimPlugin (
builtins.removeAttrs args [
"pluginName"
"sourceName"

View file

@ -1,7 +1,6 @@
{
lib,
helpers,
config,
pkgs,
...
}:
@ -35,7 +34,7 @@ let
};
};
in
helpers.vim-plugin.mkVimPlugin config {
helpers.vim-plugin.mkVimPlugin {
name = "codeium-vim";
originalName = "codeium.vim";
defaultPackage = pkgs.vimPlugins.codeium-vim;

View file

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