Skip to content

Commit e0bd683

Browse files
committed
Fix: Config path for cmake kits
Tilde was not exapanded correctly, that results in creating the kits file in creating the whole path in $PWD
1 parent adeb9e5 commit e0bd683

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/cmake-tools/const.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ local const = {
2121
-- none: this will make this option ignored
2222
target = vim.loop.cwd(), -- path to directory, this is used only if action == "soft_link" or action == "copy"
2323
},
24-
cmake_kits_path = "~/.config/cmake-tools/", -- this is used to specify global cmake kits path, see CMakeKits for detailed usage
24+
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
2525
cmake_variants_message = {
2626
short = { show = true }, -- whether to show short message
2727
long = { show = true, max_length = 40 }, -- whether to show long message

0 commit comments

Comments
 (0)