You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-52Lines changed: 6 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@
22
22
<brclear="left"/>
23
23
<br />
24
24
25
+
Take a look at the [wiki](https://github.com/nvim-tree/nvim-tree.lua/wiki) for Showcases, Tips, Recipes and more.
26
+
25
27
[Join us on matrix](https://matrix.to/#/#nvim-tree:matrix.org)
26
28
27
29
## Requirements
@@ -129,7 +131,7 @@ Development is focused on:
129
131
130
132
nvim-tree exposes a public API. This is non breaking, with additions made as necessary.
131
133
132
-
Please raise a [feature request](https://github.com/nvim-tree/nvim-tree.lua/issues/new?assignees=&labels=feature+request&template=feature_request.md&title=) if the API is insufficent for your needs. [Pull requests](#contributing) are always welcome.
134
+
Please raise a [feature request](https://github.com/nvim-tree/nvim-tree.lua/issues/new?assignees=&labels=feature+request&template=feature_request.md&title=) if the API is insufficent for your needs. [Contributions](#Contributing) are always welcome.
133
135
134
136
[:help nvim-tree-api](doc/nvim-tree-lua.txt)
135
137
@@ -145,59 +147,11 @@ Custom actions may be mapped which can invoke API or perform your own actions.
145
147
146
148
[:help nvim-tree-mappings](doc/nvim-tree-lua.txt)
147
149
148
-
## Tips & tricks
149
-
150
-
* You can add a directory by adding a `/` at the end of the paths, entering multiple directories `BASE/foo/bar/baz` will add directory foo, then bar and add a file baz to it.
151
-
* You can update window options for the tree by setting `require"nvim-tree.view".View.winopts.MY_OPTION = MY_OPTION_VALUE`
152
-
*`toggle` has a second parameter which allows to toggle without focusing the explorer (`require"nvim-tree".toggle(false, true)`).
153
-
* You can allow nvim-tree to behave like vinegar, see [:help nvim-tree-vinegar](doc/nvim-tree-lua.txt)
154
-
* If you `:set nosplitright`, the files will open on the left side of the tree, placing the tree window in the right side of the file you opened.
155
-
* You can automatically close the tab/vim when nvim-tree is the last window in the tab: <https://github.com/nvim-tree/nvim-tree.lua/discussions/1115>. WARNING: this can catastrophically fail: <https://github.com/nvim-tree/nvim-tree.lua/issues/1368>. This will not be added to nvim-tree and the team will not provide support / assistance with this, due to complexities in vim event timings and side-effects.
156
-
* Hide the `.git` folder: `filters = { custom = { "^.git$" } }`. See [:help nvim-tree.filters.custom](doc/nvim-tree-lua.txt).
157
-
* To disable the display of icons see [:help nvim-tree.renderer.icons.show](doc/nvim-tree-lua.txt).
158
-
159
-
## Troubleshooting
160
-
161
-
## Diagnostic Logging
162
-
163
-
You may enable diagnostic logging to `$XDG_CACHE_HOME/nvim/nvim-tree.log`. See [:help nvim-tree.log](doc/nvim-tree-lua.txt)
164
-
165
-
## netrw Keeps Popping Up
166
-
167
-
Eagerly disable netrw. See [:help nvim-tree.disable_netrw](doc/nvim-tree-lua.txt)
168
-
169
-
## Performance Issues
170
-
171
-
If you are experiencing performance issues with nvim-tree.lua, you can enable profiling in the logs. It is advisable to enable git logging at the same time, as that can be a source of performance problems.
172
-
173
-
```lua
174
-
log= {
175
-
enable=true,
176
-
truncate=true,
177
-
types= {
178
-
diagnostics=true,
179
-
git=true,
180
-
profile=true,
181
-
watcher=true,
182
-
},
183
-
},
184
-
```
185
-
186
-
Please attach `$XDG_CACHE_HOME/nvim/nvim-tree.log` if you raise an issue.
187
-
188
-
*Performance Tips:*
189
-
190
-
* If you are using fish as an editor shell (which might be fixed in the future), try set `shell=/bin/bash` in your vim config. Alternatively, you can [prevent fish from loading interactive configuration in a non-interactive shell](https://github.com/nvim-tree/nvim-tree.lua/issues/549#issuecomment-1127394585).
191
-
192
-
* Try manually running the git command (see the logs) in your shell e.g. `git --no-optional-locks status --porcelain=v1 --ignored=matching -u`.
193
-
194
-
* Huge git repositories may timeout after the default `git.timeout` of 400ms. Try increasing that in your setup if you see `[git] job timed out` in the logs.
195
-
196
-
* Try temporarily disabling git integration by setting `git.enable = false` in your setup.
197
-
198
150
## Contributing
199
151
200
-
PRs are always welcome. See [CONTRIBUTING.md](CONTRIBUTING.md)
152
+
PRs are always welcome. See [wiki](https://github.com/nvim-tree/nvim-tree.lua/wiki/Development) to get started.
153
+
154
+
See [bug](https://github.com/nvim-tree/nvim-tree.lua/issues?q=is%3Aissue+is%3Aopen+label%3Abug) and [PR Please](https://github.com/nvim-tree/nvim-tree.lua/issues?q=is%3Aopen+is%3Aissue+label%3A%22PR+please%22) issues if you are looking for some work to get you started.
0 commit comments