refactor(plugins): use default helpers arg instead of extraSpecialArg

This commit is contained in:
Nicolas Goudry 2024-06-05 14:45:18 +02:00
parent 71c1bc295f
commit ab1c96edc9
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44
3 changed files with 4 additions and 5 deletions

View file

@ -57,7 +57,6 @@
extraSpecialArgs = specialArgs // { extraSpecialArgs = specialArgs // {
inherit pkgs; inherit pkgs;
libn = nixvim.lib.${system};
icons = import ./utils/icons.nix; icons = import ./utils/icons.nix;
}; };
}; };

View file

@ -1,6 +1,6 @@
# homepage: https://github.com/goolord/alpha-nvim # homepage: https://github.com/goolord/alpha-nvim
# nixvim doc: https://nix-community.github.io/nixvim/plugins/alpha/index.html # nixvim doc: https://nix-community.github.io/nixvim/plugins/alpha/index.html
{ icons, libn, pkgs, ... }: { helpers, icons, pkgs, ... }:
let let
header = { header = {
@ -115,7 +115,7 @@ in
end end
require("alpha").setup({ require("alpha").setup({
layout = ${libn.helpers.toLuaObject layout}, layout = ${helpers.toLuaObject layout},
}) })
''; '';
}; };

View file

@ -1,6 +1,6 @@
# homepage: https://github.com/nvim-telescope/telescope.nvim # homepage: https://github.com/nvim-telescope/telescope.nvim
# nixvim doc: https://nix-community.github.io/nixvim/plugins/telescope/index.html # nixvim doc: https://nix-community.github.io/nixvim/plugins/telescope/index.html
{ libn, pkgs, ... }: { helpers, pkgs, ... }:
{ {
opts = { opts = {
@ -61,7 +61,7 @@
}: { }: {
inherit key mode; inherit key mode;
action.__raw = "function() TelescopeWithTheme('${fn}', ${libn.helpers.toLuaObject args}) end"; action.__raw = "function() TelescopeWithTheme('${fn}', ${helpers.toLuaObject args}) end";
options = { inherit desc; }; options = { inherit desc; };
}; };
in in