/rtr.nvim

Simple & small implementation for chdir'ing accordingly

Primary LanguageLua

rtr.nvim

Simple & small implementation for chdir'ing accordingly

What's this?

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.

Install & Usage

packer.nvim

use {
  "delphinus/rtr.nvim",
  config = function()
    require("rtr").setup {}
  end,
}

lazy.nvim

require("lazy").setup {
  { "delphinus/rtr.nvim", config = true },
}

Just done. Simple!

See more detail usage in doc.

Caveats

This plugin needs vim.fs.find to work. You chould use newer Neovim (>= 0.8.2).