Lightweight project navigator with telescope
- Autodetect by using lsp and files to save project root dir
- Use telescope to search and change root dir
With lazy.nvim
{
"zongben/proot.nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim"
},
opts = {}
}
The default configuration is as follows
{
files = { ".git" },
events = {
entered = nil, --Set a function here
},
}
Open proot picker by calling :Proot
In proot picker you can use d
to delete project dir
I like to close all buffers and restart lsp after I switch repo
events = {
entered = function ()
vim.cmd("bufdo bd")
vim.cmd("LspRestart")
end
}
ahmedkhalf/project.nvim - The superior project management solution for neovim.