Skip to content

Commit

Permalink
fix: after select cwd, we should regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
Civitasv committed Oct 30, 2023
1 parent 4b7a0e7 commit 56b4c34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/cmake-tools/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1442,8 +1442,10 @@ function cmake.select_cwd(cwd_path)
-- end
end)
)
cmake.generate({ bang = false, fargs = {} }, nil)
elseif cwd_path.args then
config.cwd = vim.fn.resolve(cwd_path.args)
cmake.generate({ bang = false, fargs = {} }, nil)
end
end

Expand Down

0 comments on commit 56b4c34

Please sign in to comment.