-
-
Notifications
You must be signed in to change notification settings - Fork 638
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
If one opens a new buffer after having changed the current working directory through nvim-tree's sync_root_with_cwd option, then :pwd while in the new buffer will print the directory neovim was originally opened in, not the new current working directory.
Neovim version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377
Operating system and version
macOS 14.3.1
Windows variant
No response
nvim-tree version
Clean room replication
require("nvim-tree").setup({sync_root_with_cwd = true})Steps to reproduce
- Launch neovim in directory
foo. - Use <C+]> to navigate to
foo/bar. - Open
foo/bar/README.md - Run
:pwd
Expected behavior
:pwd returns foo/bar.
Actual behavior
:pwd returns foo.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working