*tiny-rooter.txt* Auto-detect project root and set local working directory Author: Stephen Waits 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://git.swaits.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: