aboutsummaryrefslogtreecommitdiff
path: root/lua/cmake-explorer/config.lua
blob: 21788ce6960d8d03170f545242fdadc2a90459e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local default_config = {
	cmake_cmd = "cmake",
	build_dir_template = { "build", "${buildType}", sep = "-", case = nil },
	build_dir = "",
	build_types = { "Debug", "Release" },
	options = {},
}

local M = vim.deepcopy(default_config)

M.setup = function(opts)
	local newconf = vim.tbl_deep_extend("force", default_config, opts or {})

	for k, v in pairs(newconf) do
		M[k] = v
	end
end

return M