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

@ -1,6 +1,6 @@
# homepage: https://github.com/goolord/alpha-nvim
# nixvim doc: https://nix-community.github.io/nixvim/plugins/alpha/index.html
{ icons, libn, pkgs, ... }:
{ helpers, icons, pkgs, ... }:
let
header = {
@ -115,7 +115,7 @@ in
end
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
# nixvim doc: https://nix-community.github.io/nixvim/plugins/telescope/index.html
{ libn, pkgs, ... }:
{ helpers, pkgs, ... }:
{
opts = {
@ -61,7 +61,7 @@
}: {
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; };
};
in