From 8d956c18258bb128ecf42f95411bb26efd3a5d23 Mon Sep 17 00:00:00 2001 From: shadmansaleh Date: Wed, 20 Jul 2022 13:29:21 +0000 Subject: [PATCH] chore: autogen (vimdocs+formating) --- lua/lualine/component.lua | 4 ++-- lua/lualine/utils/fn_store.lua | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lua/lualine/component.lua b/lua/lualine/component.lua index 1fe8304..4570687 100644 --- a/lua/lualine/component.lua +++ b/lua/lualine/component.lua @@ -73,8 +73,8 @@ function M:set_on_click() if self.options.on_click ~= nil then if vim.fn.has('nvim-0.8') == 0 then modules.utils_notices.add_notice( - '### Options.on_click\nSorry `on_click` can only be used in neovim 0.8 or higher.\n' - ) + '### Options.on_click\nSorry `on_click` can only be used in neovim 0.8 or higher.\n' + ) self.options.on_click = nil return end diff --git a/lua/lualine/utils/fn_store.lua b/lua/lualine/utils/fn_store.lua index fc4079a..8bceeef 100644 --- a/lua/lualine/utils/fn_store.lua +++ b/lua/lualine/utils/fn_store.lua @@ -6,10 +6,10 @@ local fns = {} ---@param fn function the actual function to store. ---@return number same id that was provided. function M.register_fn(id, fn) - vim.validate({ - id = {id, 'n'}, - fn = {fn, 'f'} - }) + vim.validate { + id = { id, 'n' }, + fn = { fn, 'f' }, + } fns[id] = fn return id end @@ -18,8 +18,8 @@ end ---@param id number id of the fn to retrive ---@return function function M.get_fn(id) - vim.validate({ id = {id, 'n'} }) - return fns[id] or function () end + vim.validate { id = { id, 'n' } } + return fns[id] or function() end end ---Call the function of id with args