What is the Nvim-Tree equivalent to this Neotree configuration? #3098
Answered
by
alex-courtis
FlawlessCasual17
asked this question in
Q&A
-
Is there a Nvim-Tree equivalent to this Neotree Lua command? It's from the URL pasted above. require("neo-tree.command").execute({ toggle = true, dir = vim.uv.cwd() }) Also, I am trying to convert the Neotree configuration above into a Nvim-Tree configuration so I can have a smooth transition to Nvim-Tree with little to no issues. |
Beta Was this translation helpful? Give feedback.
Answered by
alex-courtis
Apr 4, 2025
Replies: 1 comment 4 replies
-
I reckon this should do it: local api = require("nvim-tree.api")
api.tree.toggle({ path = vim.uv.cwd() }) Take a look at Also take a look at wiki: Open At Startup ; there might be some useful bits you can copy/paste for your tree startup. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
FlawlessCasual17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I reckon this should do it:
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.