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