Skip to content

nvim-tree will open in the root directory, but not the current directory. #3108

Discussion options

You must be logged in to vote

It looks like cwd is set only once, at startup.

Changing to this worked:

local function open_at_cwd() ntree_api.toggle({ path = vim.uv.cwd() }) end

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@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