-
-
Notifications
You must be signed in to change notification settings - Fork 622
Tips
Alexander Courtis edited this page Nov 13, 2022
·
15 revisions
You can add a directory by adding a /
at the end of the path.
Entering multiple directories BASE/foo/bar/baz
will add directory foo, then bar and add a file baz to it.
You can update tree local window options for the tree by setting
require("nvim-tree.view").View.winopts.MY_OPTION = MY_OPTION_VALUE
toggle
has a second parameter which allows to toggle without focusing the explorer, see :help nvim-tree.api.tree
require("nvim-tree.api").tree.toggle(false, true)
You can allow nvim-tree to behave like vinegar: :help nvim-tree-vinegar
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.
You can hide the .git
folder via a custom filter, see :help nvim-tree.filters.custom
filters = { custom = { "^.git$" } }
To disable the display of icons see :help nvim-tree.renderer.icons.show