Skip to content

Commit 545e8f0

Browse files
authored
Update rooter.mdx
1 parent c9fd185 commit 545e8f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/content/docs/recipes/rooter.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,16 @@ A rooter automatically changes Neovim's working directory based on the context o
5555
- **File searching**: Tools like Telescope will search relative to your working directory
5656
- **Command execution**: Shell commands run from Neovim use the working directory as their context
5757
- **Project navigation**: Moving between files is easier when your working directory is at the project root
58-
- **LSP operations**: Many language servers work best when operating from the project root
5958

6059
### Without a rooter, you might encounter these scenarios:
6160

6261
- Opening a file from a deeply nested directory makes it difficult to search for other project files
6362
- Moving between files in different parts of a project changes your context unpredictably
6463
- Running commands against your project requires manually changing directories
65-
- Build tools and language servers might not function correctly if not at the project root
6664

6765
## Rooter vs. autochdir
6866

69-
Neovim has a built-in autochdir option that automatically changes the working directory to match the current file's directory. However, this is rarely ideal for project work, since `autochdir` always sets the directory to the file's immediate parent directory. But a rooter intelligently finds the project root, which is typically several levels up from individual files by applying more rules for detecting the root of the project.
67+
Neovim has a built-in autochdir option that automatically changes the working directory to match the current file's directory. However, this is rarely ideal for project work, since `autochdir` always sets the directory to the file's immediate parent directory. This feature aims to intelligently find the project root, which can be several levels up from individual files by applying more rules for detecting the root of the project.
7068

7169
## Practical Use Cases:
7270

0 commit comments

Comments
 (0)