From ab1c96edc99eb1b91c7f0048449943128a4a447c Mon Sep 17 00:00:00 2001 From: Nicolas Goudry Date: Wed, 5 Jun 2024 14:45:18 +0200 Subject: [PATCH] refactor(plugins): use default helpers arg instead of extraSpecialArg --- flake.nix | 1 - plugins/alpha.nix | 4 ++-- plugins/telescope.nix | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 38fd089..954fab7 100644 --- a/flake.nix +++ b/flake.nix @@ -57,7 +57,6 @@ extraSpecialArgs = specialArgs // { inherit pkgs; - libn = nixvim.lib.${system}; icons = import ./utils/icons.nix; }; }; diff --git a/plugins/alpha.nix b/plugins/alpha.nix index f888ec9..07306a7 100644 --- a/plugins/alpha.nix +++ b/plugins/alpha.nix @@ -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}, }) ''; }; diff --git a/plugins/telescope.nix b/plugins/telescope.nix index 9dd2037..166289c 100644 --- a/plugins/telescope.nix +++ b/plugins/telescope.nix @@ -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