You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I uses nvim-rooter and workspace.nvim to manange my projects, everytime i open my project, i have to manually use CMakeSelectCwd and CMakeSettings to locate my cmakelists.txt and set build directory.
This behavior comes from the fact that cmake-tools.nvim init all its path config when loading the plugin. Any neovim working dir path changed after by other plugins or user operation is ignored. This is really frustrating.
Currently cmake-tools supports session based on cwd, but that path is also decided at setup which won't help in my situation.
Maybe adding some config function that allow users to determine those paths when they are relevant.
require("cmake-tools").setup {
cmake_build_directory = function() -- currently runs when plugin setups, which won't work if i later changes my working dir
if osys.iswin32 then
return "out\\${variant:buildType}"
end
return "out/${variant:buildType}"
end,
cwd = function() -- add new cwd function
return custom_user_function() -- calls everytime when using cmds like CMakeBuild or CMakeRun.
end,
}
The text was updated successfully, but these errors were encountered:
I uses nvim-rooter and workspace.nvim to manange my projects, everytime i open my project, i have to manually use CMakeSelectCwd and CMakeSettings to locate my cmakelists.txt and set build directory.
This behavior comes from the fact that cmake-tools.nvim init all its path config when loading the plugin. Any neovim working dir path changed after by other plugins or user operation is ignored. This is really frustrating.
Currently cmake-tools supports session based on cwd, but that path is also decided at setup which won't help in my situation.
Maybe adding some config function that allow users to determine those paths when they are relevant.
The text was updated successfully, but these errors were encountered: