Shatur / neovim-session-manager

A simple wrapper around :mksession.
GNU General Public License v3.0
510 stars 52 forks source link

Save session for actual dir instead of project root when using project management plugins #115

Open steakhutzeee opened 5 months ago

steakhutzeee commented 5 months ago

Describe the problem or limitation you are having When using plugins to jump to projects, like https://github.com/ahmedkhalf/project.nvim these let you jump to a project root dir and open a file. Then the !pwd will be the one of the project root, not the one of the opened file. So the session will be saved for the project root instead of the eventual subdir where the opened file resides.

Describe the solution you'd like Could be possible to implement a way to double check the actual path of the opened file and save the session for that path instead of just relying on the !pwd?

Describe alternatives you've considered N/A

Additional context N/A