Home

Awesome

NOTE: This repository is no longer maintained. Check out project.nvim

rooter.nvim

rooter.nvim changes current working directory to project root of the file opened in current buffer. It identifies a directory as project root if it contains any of the file or folder specified in vim.g.rooter_pattern. rooter.nvim triggers every time the buffer changes.

Although this plugin has been tested only on linux, but it should work for all Unix based OS.

Customization

rooter.nvim provides you with two options.

OptionsDescriptionType
vim.g.rooter_patternList of patterns(file or folder) which describes a directory as project rootlist
vim.g.outermost_rootWhether to change directory to outermost root directory or notboolean

Default configurations are

vim.g.rooter_pattern = {'.git', 'Makefile', '_darcs', '.hg', '.bzr', '.svn', 'node_modules', 'CMakeLists.txt'} 
vim.g.outermost_root = true

Updates

Bugs

Patterns like *.sln does not work as of now.