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
+99-64Lines changed: 99 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,50 +32,55 @@ Questions and general support: [Discussions](https://github.com/nvim-tree/nvim-t
32
32
33
33
[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/). Your terminal emulator must be configured to use that font, usually "Hack Nerd Font"
34
34
35
-
## Install
35
+
## Installing
36
36
37
-
Please install via your preferred package manager. See [Installation](https://github.com/nvim-tree/nvim-tree.lua/wiki/Installation) for specific package manager instructions.
38
-
39
-
`nvim-tree/nvim-tree.lua`
37
+
Please install via your preferred package manager. See [Installation](https://github.com/nvim-tree/nvim-tree.lua/wiki/Installation) for some specific package manager instructions.
40
38
41
39
Major or minor versions may be specified via tags: `v<MAJOR>` e.g. `v1` or `v<MAJOR>.<MINOR>` e.g. `v1.23`
42
40
43
-
`nvim-tree/nvim-web-devicons` optional, for file icons
41
+
## Quick Start
44
42
45
-
Disabling [netrw](https://neovim.io/doc/user/pi_netrw.html) is strongly advised, see [:help nvim-tree-netrw](doc/nvim-tree-lua.txt)
43
+
Install the plugins via your package manager:
44
+
`"nvim-tree/nvim-tree.lua"`
45
+
`"nvim-tree/nvim-web-devicons"`
46
46
47
-
## Quick Start
47
+
Disabling [netrw](https://neovim.io/doc/user/pi_netrw.html) is strongly advised, see [:help nvim-tree-netrw](doc/nvim-tree-lua.txt)
48
48
49
49
### Setup
50
50
51
-
Setup the plugin in your `init.lua`
51
+
Setup the plugin in your `init.lua`.
52
+
53
+
See [:help nvim-tree-setup](doc/nvim-tree-lua.txt) and [:help nvim-tree-config-default](doc/nvim-tree-lua.txt)
52
54
53
55
```lua
54
-
-- disable netrw at the very start of your init.lua
55
-
vim.g.loaded_netrw=1
56
-
vim.g.loaded_netrwPlugin=1
57
-
58
-
-- optionally enable 24-bit colour
59
-
vim.opt.termguicolors=true
60
-
61
-
-- empty setup using defaults
62
-
require("nvim-tree").setup()
63
-
64
-
-- OR setup with some options
65
-
require("nvim-tree").setup({
66
-
sort= {
67
-
sorter="case_sensitive",
68
-
},
69
-
view= {
70
-
width=30,
71
-
},
72
-
renderer= {
73
-
group_empty=true,
74
-
},
75
-
filters= {
76
-
dotfiles=true,
77
-
},
78
-
})
56
+
-- disable netrw at the very start of your init.lua
57
+
vim.g.loaded_netrw=1
58
+
vim.g.loaded_netrwPlugin=1
59
+
60
+
-- optionally enable 24-bit colour
61
+
vim.opt.termguicolors=true
62
+
63
+
-- empty setup using defaults
64
+
require("nvim-tree").setup()
65
+
66
+
-- OR setup with a config
67
+
68
+
---@typenvim_tree.config
69
+
localconfig= {
70
+
sort= {
71
+
sorter="case_sensitive",
72
+
},
73
+
view= {
74
+
width=30,
75
+
},
76
+
renderer= {
77
+
group_empty=true,
78
+
},
79
+
filters= {
80
+
dotfiles=true,
81
+
},
82
+
}
83
+
require("nvim-tree").setup(config)
79
84
```
80
85
81
86
### Help
@@ -86,62 +91,91 @@ Show the mappings: `g?`
86
91
87
92
### Custom Mappings
88
93
89
-
[:help nvim-tree-mappings-default](doc/nvim-tree-lua.txt) are applied by default however you may customise via |nvim-tree.on_attach| e.g.
94
+
[:help nvim-tree-mappings-default](doc/nvim-tree-lua.txt) are applied by default however you may customise via [:help nvim_tree.config](doc/nvim-tree-lua.txt)`{on_attach}` e.g.
0 commit comments