Skip to content

Commit e3723fe

Browse files
committed
refactor: Use stdpath(config) for path expansion
Refactor: Change cmake kits path back to nil
1 parent 47b60a8 commit e3723fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/cmake-tools/const.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ local const = {
2424
---@type string|fun(): string
2525
target = vim.loop.cwd, -- path or function returning path to directory, this is used only if action == "soft_link" or action == "copy"
2626
},
27-
cmake_config_path = vim.fn.expand("~") .. "/.config/cmake-tools/", -- this is used to specify global cmake config path
28-
cmake_kits_path = vim.fn.expand("~") .. "/.config/cmake-tools/cmake-kits.json", -- this is used to specify global cmake kits path, see CMakeKits for detailed usage
27+
cmake_config_path = vim.fn.stdpath("config") .. "/cmake-tools/", -- this is used to specify global cmake config path
28+
cmake_kits_path = nil, -- this is used to specify global cmake kits path, see CMakeKits for detailed usage
2929
cmake_variants_message = {
3030
short = { show = true }, -- whether to show short message
3131
long = { show = true, max_length = 40 }, -- whether to show long message

0 commit comments

Comments
 (0)