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: .github/ISSUE_TEMPLATE/bug_report.yml
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,14 @@ body:
5
5
- type: markdown
6
6
attributes:
7
7
value: |
8
-
Before reporting: search [existing issues](https://github.com/kyazdani42/nvim-tree.lua/issues) and make sure that nvim-tree is updated to the latest version. If you are experiencing performance issues, please [enable profiling](https://github.com/kyazdani42/nvim-tree.lua#performance-issues) and attach the logs.
8
+
Is this a question?
9
+
* Please start a new [Q&A discussion](https://github.com/nvim-tree/nvim-tree.lua/discussions/new) instead of raising a bug.
* ensure that nvim-tree is updated to the latest version
14
+
15
+
If you are experiencing performance issues, please [enable profiling](https://github.com/nvim-tree/nvim-tree.lua#performance-issues) and attach the logs.
9
16
- type: textarea
10
17
attributes:
11
18
label: "Description"
@@ -15,7 +22,7 @@ body:
15
22
- type: textarea
16
23
attributes:
17
24
label: "Neovim version"
18
-
description: "Output of `nvim --version`. Please see nvim-tree.lua [minimum required version](https://github.com/kyazdani42/nvim-tree.lua#notice)."
25
+
description: "Output of `nvim --version`. Please see nvim-tree.lua [minimum required version](https://github.com/nvim-tree/nvim-tree.lua#notice)."
19
26
placeholder: |
20
27
NVIM v0.6.1
21
28
Build type: Release
@@ -42,7 +49,7 @@ body:
42
49
label: "Minimal config"
43
50
description: "Minimal(!) configuration necessary to reproduce the issue.
44
51
45
-
(Right click) save [nvt-min.lua](https://raw.githubusercontent.com/kyazdani42/nvim-tree.lua/master/.github/ISSUE_TEMPLATE/nvt-min.lua) to `/tmp` and run using `nvim -nu /tmp/nvt-min.lua`
52
+
(Right click) save [nvt-min.lua](https://raw.githubusercontent.com/nvim-tree/nvim-tree.lua/master/.github/ISSUE_TEMPLATE/nvt-min.lua) to `/tmp` and run using `nvim -nu /tmp/nvt-min.lua`
46
53
47
54
If _absolutely_ necessary, add plugins and modify the nvim-tree setup at the indicated lines.
[nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons) is optional and used to display file icons. It requires a [patched font](https://www.nerdfonts.com/).
31
+
[nvim-web-devicons](https://github.com/nvim-tree/nvim-web-devicons) is optional and used to display file icons. It requires a [patched font](https://www.nerdfonts.com/).
31
32
32
33
## Install
33
34
34
35
Install with [vim-plug](https://github.com/junegunn/vim-plug):
35
36
36
37
```vim
37
-
Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons
38
-
Plug 'kyazdani42/nvim-tree.lua'
38
+
Plug 'nvim-tree/nvim-web-devicons' " optional, for file icons
39
+
Plug 'nvim-tree/nvim-tree.lua'
39
40
```
40
41
41
42
or with [packer](https://github.com/wbthomason/packer.nvim):
42
43
43
44
```lua
44
45
use {
45
-
'kyazdani42/nvim-tree.lua',
46
+
'nvim-tree/nvim-tree.lua',
46
47
requires= {
47
-
'kyazdani42/nvim-web-devicons', -- optional, for file icons
48
+
'nvim-tree/nvim-web-devicons', -- optional, for file icons
48
49
},
49
50
tag='nightly' -- optional, updated every week. (see issue #1193)
50
51
}
@@ -57,6 +58,13 @@ Setup should be run in a lua file or in a lua heredoc [:help lua-heredoc](https:
57
58
```lua
58
59
-- examples for your init.lua
59
60
61
+
-- disable netrw at the very start of your init.lua (strongly advised)
62
+
vim.g.loaded_netrw=1
63
+
vim.g.loaded_netrwPlugin=1
64
+
65
+
-- set termguicolors to enable highlight groups
66
+
vim.opt.termguicolors=true
67
+
60
68
-- empty setup using defaults
61
69
require("nvim-tree").setup()
62
70
@@ -98,33 +106,66 @@ Basic commands:
98
106
99
107
`:NvimTreeCollapse` Collapses the nvim-tree recursively.
100
108
101
-
## Api
102
-
103
-
nvim-tree exposes a public api; see [:help nvim-tree-api](doc/nvim-tree-lua.txt). This is a stable non breaking api.
104
-
105
109
## Mappings
106
110
107
111
nvim-tree comes with number of mappings; for default mappings please see [:help nvim-tree-default-mappings](doc/nvim-tree-lua.txt), for way of configuring mappings see [:help nvim-tree-mappings](doc/nvim-tree-lua.txt)
108
112
109
113
`g?` toggles help, showing all the mappings and their actions.
110
114
115
+
## Roadmap
116
+
117
+
nvim-tree is stable and new major features will not be added. The focus is on existing user experience.
118
+
119
+
Users are encouraged to add their own custom features via the public [API](#api).
120
+
121
+
Development is focused on:
122
+
* Bug fixes
123
+
* Performance
124
+
* Quality of Life improvements
125
+
* API / Events
126
+
* Enhancements to existing features
127
+
128
+
## API
129
+
130
+
nvim-tree exposes a public API. This is non breaking, with additions made as necessary.
131
+
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.
133
+
134
+
[:help nvim-tree-api](doc/nvim-tree-lua.txt)
135
+
136
+
### Events
137
+
138
+
Users may subscribe to events that nvim-tree will dispatch in a variety of situations.
139
+
140
+
[:help nvim-tree-events](doc/nvim-tree-lua.txt)
141
+
142
+
### Actions
143
+
144
+
Custom actions may be mapped which can invoke API or perform your own actions.
145
+
146
+
[:help nvim-tree-mappings](doc/nvim-tree-lua.txt)
147
+
111
148
## Tips & tricks
112
149
113
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.
114
151
* You can update window options for the tree by setting `require"nvim-tree.view".View.winopts.MY_OPTION = MY_OPTION_VALUE`
115
152
*`toggle` has a second parameter which allows to toggle without focusing the explorer (`require"nvim-tree".toggle(false, true)`).
116
153
* You can allow nvim-tree to behave like vinegar, see [:help nvim-tree-vinegar](doc/nvim-tree-lua.txt)
117
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.
118
-
* You can automatically close the tab/vim when nvim-tree is the last window in the tab: <https://github.com/kyazdani42/nvim-tree.lua/discussions/1115>. WARNING: this can catastrophically fail: <https://github.com/kyazdani42/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.
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.
119
156
* Hide the `.git` folder: `filters = { custom = { "^.git$" } }`. See [:help nvim-tree.filters.custom](doc/nvim-tree-lua.txt).
120
157
* To disable the display of icons see [:help nvim-tree.renderer.icons.show](doc/nvim-tree-lua.txt).
121
158
122
159
## Troubleshooting
123
160
124
-
###Diagnostic Logging
161
+
## Diagnostic Logging
125
162
126
163
You may enable diagnostic logging to `$XDG_CACHE_HOME/nvim/nvim-tree.log`. See [:help nvim-tree.log](doc/nvim-tree-lua.txt)
127
164
165
+
## netrw Keeps Popping Up
166
+
167
+
Eagerly disable netrw. See [:help nvim-tree.disable_netrw](doc/nvim-tree-lua.txt)
168
+
128
169
## Performance Issues
129
170
130
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.
@@ -134,8 +175,10 @@ log = {
134
175
enable=true,
135
176
truncate=true,
136
177
types= {
178
+
diagnostics=true,
137
179
git=true,
138
180
profile=true,
181
+
watcher=true,
139
182
},
140
183
},
141
184
```
@@ -144,7 +187,7 @@ Please attach `$XDG_CACHE_HOME/nvim/nvim-tree.log` if you raise an issue.
144
187
145
188
*Performance Tips:*
146
189
147
-
* 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/kyazdani42/nvim-tree.lua/issues/549#issuecomment-1127394585).
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).
148
191
149
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`.
150
193
@@ -172,7 +215,7 @@ Let us know you're interested by commenting on issues and raising PRs.
0 commit comments