What is the Nvim-Tree equivalent to this Neotree configuration? #3098
-
https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/plugins/extras/editor/neo-tree.lua 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.
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.
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.