From 85545bd19280866a9febe1bc528a9907e68a7f5e Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Mon, 30 Aug 2021 18:41:53 +0600 Subject: [PATCH] Perf: move the files loaded at startup to &rtp/lua require is faster renamed: lualine/init.lua -> lualine.lua renamed: lualine/config.lua -> lualine_config.lua --- lua/{lualine/init.lua => lualine.lua} | 2 +- lua/{lualine/config.lua => lualine_config.lua} | 0 lua/tests/spec/config_spec.lua | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename lua/{lualine/init.lua => lualine.lua} (99%) rename lua/{lualine/config.lua => lualine_config.lua} (100%) diff --git a/lua/lualine/init.lua b/lua/lualine.lua similarity index 99% rename from lua/lualine/init.lua rename to lua/lualine.lua index e99bb95..34fa72f 100644 --- a/lua/lualine/init.lua +++ b/lua/lualine.lua @@ -7,7 +7,7 @@ local modules = lualine_require.lazy_require{ utils_section = 'lualine.utils.section', utils = 'lualine.utils.utils', utils_notices = 'lualine.utils.notices', - config_module = 'lualine.config', + config_module = 'lualine_config', } local config -- Stores cureently applied config local new_config = true -- Stores config that will be applied diff --git a/lua/lualine/config.lua b/lua/lualine_config.lua similarity index 100% rename from lua/lualine/config.lua rename to lua/lualine_config.lua diff --git a/lua/tests/spec/config_spec.lua b/lua/tests/spec/config_spec.lua index a9a9e76..937717b 100644 --- a/lua/tests/spec/config_spec.lua +++ b/lua/tests/spec/config_spec.lua @@ -1,7 +1,7 @@ local eq = assert.are.same describe('config parsing', function() - local config_module = require 'lualine.config' + local config_module = require 'lualine_config' describe('options', function() describe('icons_enabled', function()