From d328b5caae5a82480e47360b41706c6ca44ab8d4 Mon Sep 17 00:00:00 2001 From: xezo360hye Date: Wed, 6 Aug 2025 17:41:26 +0300 Subject: [PATCH] fixed indentation --- lua/lazy-load.lua | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/lua/lazy-load.lua b/lua/lazy-load.lua index 41b46ab..68fc1ca 100644 --- a/lua/lazy-load.lua +++ b/lua/lazy-load.lua @@ -1,28 +1,28 @@ local M = {} function M.setup(module, opts) - local instance = nil + local instance = nil - local function setup() - if instance == nil then - instance = require(module) - if instance.setup then - instance.setup(opts or {}) + local function setup() + if instance == nil then + instance = require(module) + if instance.setup then + instance.setup(opts or {}) + end end - end - end + end - return setmetatable({}, { - __index = function(_, key) - setup() - return instance[key] - end, + return setmetatable({}, { + __index = function(_, key) + setup() + return instance[key] + end, - __call = function(_, ...) - setup() - return instance(...) - end, - }) + __call = function(_, ...) + setup() + return instance(...) + end, + }) end return M