🧹 refactor(data): require data modules directly

require data modules directly throughout config. No longer user
require("data") as a parent module
This commit is contained in:
2024-11-08 12:39:30 -05:00
parent 6f98bdb344
commit 823e113276
18 changed files with 199 additions and 210 deletions
+2 -4
View File
@@ -53,11 +53,9 @@ end
--- Create keymaps for the module
---@return nil
function M.setup()
-- Load the data module
local data = require("data")
-- Create keymaps
for _, map in ipairs(data.keys.indentor) do
data.func.add_keymap(map[1], map[2], map[3], map[4])
for _, map in ipairs(require("data.keys").indentor) do
require("data.func").add_keymap(map[1], map[2], map[3], map[4])
end
end