Skip to content

What is the Nvim-Tree equivalent to this Neotree configuration? #3098

Discussion options

You must be logged in to vote

I reckon this should do it:

local api = require("nvim-tree.api")
api.tree.toggle({ path = vim.uv.cwd() })

Take a look at :help nvim-tree-api.tree - things seem to map pretty well.

Also take a look at wiki: Open At Startup ; there might be some useful bits you can copy/paste for your tree startup.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@FlawlessCasual17
Comment options

@FlawlessCasual17
Comment options

@alex-courtis
Comment options

@FlawlessCasual17
Comment options

Answer selected by FlawlessCasual17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants