From 785334860c2342e0f2b47bb99b3cd6891ad39acc Mon Sep 17 00:00:00 2001 From: Smirnov Oleksandr Date: Tue, 7 Feb 2023 21:46:06 +0200 Subject: [PATCH] refactor(config): change module name to 'config' --- lua/gopher/config.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/gopher/config.lua b/lua/gopher/config.lua index e8cdc6d..2211c76 100644 --- a/lua/gopher/config.lua +++ b/lua/gopher/config.lua @@ -9,7 +9,7 @@ ---@field iferr string ---@field dlv string -local M = { +local config = { ---@type gopher.Config config = { ---set custom commands for tools @@ -26,8 +26,8 @@ local M = { ---Plugin setup function ---@param opts gopher.Config user config -function M.setup(opts) - M.config = vim.tbl_deep_extend("force", M.config, opts or {}) +function config.setup(opts) + config.config = vim.tbl_deep_extend("force", config.config, opts or {}) end -return M +return config