Files
tiny-rooter.nvim/doc/tiny-rooter.txt
T
swaits fb9a52eae8
CI / lint (push) Canceled after 0s
CI / test (push) Canceled after 0s
feat: initial release
2026-04-09 15:40:48 -06:00

68 lines
2.5 KiB
Plaintext

*tiny-rooter.txt* Auto-detect project root and set local working directory
Author: Stephen Waits <https://github.com/swaits>
License: MIT
==============================================================================
CONTENTS *tiny-rooter-contents*
1. Introduction .............................. |tiny-rooter-introduction|
2. Requirements .............................. |tiny-rooter-requirements|
3. Installation .............................. |tiny-rooter-installation|
4. Configuration ............................. |tiny-rooter-configuration|
==============================================================================
1. INTRODUCTION *tiny-rooter-introduction*
tiny-rooter.nvim automatically sets the window-local working directory to
the project root when opening a file. Works out of the box with zero
configuration.
==============================================================================
2. REQUIREMENTS *tiny-rooter-requirements*
- Neovim >= 0.12
==============================================================================
3. INSTALLATION *tiny-rooter-installation*
Add to your |vim.pack.add()| call: >lua
"https://github.com/swaits/tiny-rooter.nvim",
<
That's it. The plugin auto-loads with defaults. To customize, call setup: >lua
require("tiny-rooter").setup({
markers = { ".git", ".jj", "Cargo.toml" },
})
<
==============================================================================
4. CONFIGURATION *tiny-rooter-configuration*
*tiny-rooter.setup()*
setup({opts})
Optional. The plugin works with defaults if you never call this.
Calling setup reconfigures the plugin with the given options.
All options shown with defaults: >lua
require("tiny-rooter").setup({
markers = {
".git", ".jj", "Cargo.toml", "pyproject.toml",
"Makefile", "go.mod", "package.json",
},
})
<
Parameters: ~
{opts} (table|nil) Configuration table
Fields: ~
{markers} (table) List of file/directory names that indicate a
project root. Searched upward from the current file.
Default: { ".git", ".jj", "Cargo.toml", "pyproject.toml",
"Makefile", "go.mod", "package.json" }
==============================================================================
vim:tw=78:ts=8:ft=help:norl: