2022-05-29 06:37:47 -04:00
|
|
|
local M = {}
|
2022-05-29 05:38:53 -04:00
|
|
|
|
2022-05-29 06:37:47 -04:00
|
|
|
M.load_config = function()
|
2022-07-22 12:00:00 -04:00
|
|
|
local config = require "core.default_config"
|
2022-12-17 06:25:30 -05:00
|
|
|
local chadrc_path = vim.api.nvim_get_runtime_file("lua/custom/chadrc.lua", false)[1]
|
2022-07-22 12:00:00 -04:00
|
|
|
|
2022-12-17 06:25:30 -05:00
|
|
|
if chadrc_path then
|
2024-02-24 22:13:48 -05:00
|
|
|
config = vim.tbl_deep_extend("force", config, dofile(chadrc_path))
|
2022-07-22 12:00:00 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
return config
|
2021-08-25 01:28:56 -04:00
|
|
|
end
|
|
|
|
|
2022-05-29 06:37:47 -04:00
|
|
|
return M
|