aboutsummaryrefslogtreecommitdiff
path: root/lua/cmake-explorer/config.lua
diff options
context:
space:
mode:
authorDaniil Rozanov <daniilrozzanov@gmail.com>2024-04-24 03:34:52 +0300
committerDaniil Rozanov <daniilrozzanov@gmail.com>2024-04-24 03:34:52 +0300
commitf9b36bf730fda5488be87b91fd03a6f7cbf64e73 (patch)
treed8a7da573111d40c0e51c9e9954a3bb1977dd39c /lua/cmake-explorer/config.lua
parent672f0d32e322b79661b5d7959887adaa9e41ad98 (diff)
refactor: full rewrite
Diffstat (limited to 'lua/cmake-explorer/config.lua')
-rw-r--r--lua/cmake-explorer/config.lua46
1 files changed, 0 insertions, 46 deletions
diff --git a/lua/cmake-explorer/config.lua b/lua/cmake-explorer/config.lua
deleted file mode 100644
index 611f526..0000000
--- a/lua/cmake-explorer/config.lua
+++ /dev/null
@@ -1,46 +0,0 @@
-local default_config = {
- cmake_path = "cmake",
- environment = {},
- configure_environment = {},
- build_directory = "${workspaceFolder}/build-${buildType}",
- build_environment = {},
- build_args = {},
- build_tool_args = {},
- generator = nil,
- default_variants = {
- {
- default = "debug",
- description = "Build type",
- choices = {
- debug = { short = "Debug", long = "Long debug", buildType = "Debug" },
- release = { short = "Release", long = "Long release", buildType = "Release" },
- },
- },
- {
- default = "static",
- choices = {
- static = { short = "Static", long = "Long static", linkage = "static" },
- shared = { short = "Shared", long = "Long shared", linkage = "shared" },
- },
- },
- },
- variants_display = {
- short_sep = " × ",
- long_sep = " ❄ ",
- },
- parallel_jobs = nil,
- save_before_build = true,
- source_directory = "${workspaceFolder}",
-}
-
-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