🧹 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
+4 -5
View File
@@ -3,23 +3,22 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Core │
-- ╰─────────────────────────────────────────────────────────╯
local data = require("data")
return {
-- require("config.rocks").plugin_spec,
{ -- LazyVim
"LazyVim/LazyVim",
priority = 900,
opts = data.types.lazyvim.opts,
opts = require("data.types").lazyvim.opts,
},
{ -- Bufferline
"akinsho/bufferline.nvim",
cond = data.types.bufferline.enabled,
opts = data.types.bufferline.opts,
cond = require("data.types").bufferline.enabled,
opts = require("data.types").bufferline.opts,
},
{ -- Which-Key
"folke/which-key.nvim",
lazy = true,
opts = data.types.whichkey.opts,
opts = require("data.types").whichkey.opts,
},
}