cosmicbuffalo/root_swapper.nvim

github github
project
stars 1
issues 0
subscribers 1
forks 0
CREATED

UPDATED


root_swapper.nvim

This is a tiny plugin that sets up an autocommand to lcd to detected root directories when switching buffers.

Supports oil.nvim buffers - when navigating directories in oil, your lcd will update to the appropriate project root based on the current directory.

📦 Installation

Lazy.nvim minimal installation:

return {
    "cosmicbuffalo/root_swapper.nvim",
}

⚙️ Customizable Configuration

opts = {
    root_indicators = { ".git", "Gemfile", "Makefile" } -- An array of filenames indicating root directories
}