neovim-config/lua/core/utils.lua
2024-02-25 08:43:48 +05:30

14 lines
307 B
Lua

local M = {}
M.load_config = function()
local config = require "core.default_config"
local chadrc_path = vim.api.nvim_get_runtime_file("lua/custom/chadrc.lua", false)[1]
if chadrc_path then
config = vim.tbl_deep_extend("force", config, dofile(chadrc_path))
end
return config
end
return M