From 8b4f70817c0a8d548adc1b6254627e91c1c27466 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Fri, 3 Sep 2021 15:59:00 +0600 Subject: [PATCH] Refactor: Rename lualine_conifg.lua -> lualine/config.lua This is loaded by lualine require so the peroformence will not be effected. --- 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_config.lua => lualine/config.lua} (100%) diff --git a/lua/lualine.lua b/lua/lualine.lua index 9da4650..248aeaf 100644 --- a/lua/lualine.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 937717b..a9a9e76 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()