From 4b2701d6c27829cf7ff1a3141543b4cdf2bcdc2c Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Tue, 26 Nov 2024 15:50:09 +0100 Subject: [PATCH] lazy: pass plugin name to custom load function --- modules/wrapper/lazy/config.nix | 2 +- modules/wrapper/lazy/lazy.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wrapper/lazy/config.nix b/modules/wrapper/lazy/config.nix index bf37e34a..6a9a6ea2 100644 --- a/modules/wrapper/lazy/config.nix +++ b/modules/wrapper/lazy/config.nix @@ -88,7 +88,7 @@ if spec.load != null then mkLuaInline '' - funcion() + function(name) ${spec.load} end '' diff --git a/modules/wrapper/lazy/lazy.nix b/modules/wrapper/lazy/lazy.nix index 7826233e..4bdfb73f 100644 --- a/modules/wrapper/lazy/lazy.nix +++ b/modules/wrapper/lazy/lazy.nix @@ -173,7 +173,7 @@ description = '' Lua code to override the `vim.g.lz_n.load()` function for a single plugin. - This will be wrapped in a function. + This will be wrapped in a `function(name) ... end`. ''; }; };