Simple & small implementation for chdir'ing accordingly
This is a yet another plugin to change the current directory according to the file on each buffer. There are similar plugins: airblade/vim-rooter, ahmedkhalf/project.nvim, but rtr.nvim has the most simple implementation to achieve the same feature with using vim.fs.find
API.
use {
"delphinus/rtr.nvim",
config = function()
require("rtr").setup {}
end,
}
require("lazy").setup {
{ "delphinus/rtr.nvim", config = true },
}
Just done. Simple!
See more detail usage in doc.
This plugin needs vim.fs.find
to work. You chould use newer Neovim (>= 0.8.2).