Rooter.nvim
rooter.nvim is a neovim plugin written in lua to change current working directory to project's root directory.
Install / Use
/learn @AkashKarnatak/Rooter.nvimREADME
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.
| Options | Description | Type |
|------------------------|-----------------------------------------------------------------------------|----------|
| vim.g.rooter_pattern | List of patterns(file or folder) which describes a directory as project root| list |
| vim.g.outermost_root | Whether to change directory to outermost root directory or not | boolean |
Default configurations are
vim.g.rooter_pattern = {'.git', 'Makefile', '_darcs', '.hg', '.bzr', '.svn', 'node_modules', 'CMakeLists.txt'}
vim.g.outermost_root = true
Updates
- Added support for
nvim-tree.
Bugs
Patterns like *.sln does not work as of now.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
