natecraddock / workspaces.nvim

a simple plugin to manage workspace directories in neovim
MIT License
309 stars 15 forks source link

fix: Set workspace before changing directory for "DirChanged" autocommands #42

Closed ejrichards closed 1 month ago

ejrichards commented 1 month ago

Users aren't able to reference the current workspace in a "DirChanged" autocommand, since it is set after ":cd" is called. This just swaps the order when opening a workspace.

natecraddock commented 1 month ago

This makes sense to me! Thanks!