charludo / projectmgr.nvim

Quickly switch between projects and automate startup tasks.
https://github.com/charludo/projectmgr.nvim
GNU General Public License v3.0
121 stars 4 forks source link

Projectmgr does not work properly with rmagatti/auto-session #18

Closed Sur-en closed 6 months ago

Sur-en commented 1 year ago

I use projectmgr and rmagatti/auto-session, and they work fine if they aren't combined. When I start to use it together projectmgr hinders auto-session. This is the use case. I have a directory that was added to the project list. When open nvim in that directory auto-session cannot to load the session.

In order to fix this behavior I make one change in manage.lua file. I deleted api.nvim_command("bufdo bd") from M.close_project() function and after it auto-session starts work fine but this change broke projectmgr to load all buffers of a project.

charludo commented 1 year ago

This seems like a not-so-easy fix, since auto-session and projectmgr appear to have wuite a bit of overlap in functionality. Out of curiosity, what's your usecase for combining both?

I'm open to adding some config option as a workaround (maybe disabling the overlapping parts?)