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