telescope-rooter.nvim is a extension for the telescope neovim plugin. telescope-rooter.nvim changes the working directory to the to the project/root path before the TelescopePrompt is started and restores the working directory to the previous once closed.
This plugins requires telescope.nvim
Using Lazy as dependency for telescope
dependencies = {
...
{"desdic/telescope-rooter.nvim"}
...
}require "telescope".load_extension("rooter")require("telescope").extensions = {
rooter = {
enable = true,
patterns = { ".git" }
}
}Note that if one of the patterns are not found it will not change the current working directory
telescope-rooter.nvim can be enabled/disabled using :Telescope rooter toggle
- automatic testing via github