refactor(plugins): use default helpers arg instead of extraSpecialArg
This commit is contained in:
parent
71c1bc295f
commit
ab1c96edc9
3 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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},
|
||||||
})
|
})
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue