fix(nvim): Rooter: only change root when ".git" directory is found

- We do NOT want to change the project root on a multi-project repo
This commit is contained in:
Pratik Tripathy
2025-01-06 17:31:13 +05:30
parent 91499a306f
commit 4bc62021d6

View File

@@ -199,6 +199,7 @@ return {
cond = require("config.util").is_not_vscode(), cond = require("config.util").is_not_vscode(),
config = function() config = function()
vim.g.rooter_cd_cmd = "tcd" -- Use tcd command to change the root vim.g.rooter_cd_cmd = "tcd" -- Use tcd command to change the root
vim.g.rooter_patterns = { ".git" }
end, end,
}, },