ahmedkhalf / project.nvim

The superior project management solution for neovim.
Apache License 2.0
1.29k stars 119 forks source link

Directory does not change when changing projects through Telescope #150

Open shalawfatah opened 3 months ago

shalawfatah commented 3 months ago

This plugin works well and I enjoy it, great work. I run nvim anywhere and I hit certain keys to open :Telescope projects, which opens project list, I open a project, and run :!pwd, sure thing, the directory change has happened. However, if I change the project again through the same keybinding (:Telescope projects), the change happens and every other plugin works with it, including telescope, but running !pwd shows that I'm still on the first opened project. I wonder how to solve this? This is an issue for me becuase I want to start Tmux sessions based on the current project I work on. Best

aburak621 commented 3 months ago

I have the same problem. After opening up a project with the telescope picker, going to my lua config with the ":e" command doesn't change the cwd. So when I try to search for a file in my config, files from the previous project comes up.

shalawfatah commented 3 months ago

@aburak621 For me, everything works fine, like the projects load and if I do telescope, it shows the files and the folders for the correct place, the only problem is after the first time, the plugin does not cd into new projects (or at least the shell does not recognize it).