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
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -44,13 +44,11 @@ Please install via your preferred package manager. See [Installation](https://gi
44
44
45
45
`nvim-tree/nvim-web-devicons` optional, for file icons
46
46
47
-
## Setup
47
+
## Quick Start
48
48
49
-
Setup should be run in a lua file or in a lua heredoc [:help lua-heredoc](https://neovim.io/doc/user/lua.html) if using in a vim file.
49
+
Setup the plugin in your `init.lua`
50
50
51
51
```lua
52
-
-- examples for your init.lua
53
-
54
52
-- disable netrw at the very start of your init.lua (strongly advised)
55
53
vim.g.loaded_netrw=1
56
54
vim.g.loaded_netrwPlugin=1
@@ -64,6 +62,9 @@ require("nvim-tree").setup()
64
62
-- OR setup with some options
65
63
require("nvim-tree").setup({
66
64
sort_by="case_sensitive",
65
+
view= {
66
+
width=30,
67
+
},
67
68
renderer= {
68
69
group_empty=true,
69
70
},
@@ -73,6 +74,10 @@ require("nvim-tree").setup({
73
74
})
74
75
```
75
76
77
+
Open the tree: `:NvimTreeOpen`
78
+
79
+
Show the mappings: `g?`
80
+
76
81
For complete list of available configuration options see [:help nvim-tree-setup](doc/nvim-tree-lua.txt)
77
82
78
83
Each option is documented in `:help nvim-tree.OPTION_NAME`. Nested options can be accessed by appending `.`, for example [:help nvim-tree.filters.dotfiles](doc/nvim-tree-lua.txt)
0 commit comments