charludo / projectmgr.nvim

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

Git Info not displayed in Project Manager [Windows] #22

Open Hamza-L opened 8 months ago

Hamza-L commented 8 months ago

Although a .git folder is present in the directory, there is not git info being shown

Screenshot 2024-02-29 233803

This is due to a few commands in the file helpers.lua. In windows "2>/dev/null" is not a valid command (path is invalid). A temporary fix if powershell is used is to use "2>$null" instead.

[with the temporary fix] Screenshot 2024-02-29 233551

There should be a way to check if one is using unix or windows to change that command input appropriately.

charludo commented 7 months ago

Sorry for taking so long to get back to you.

Unfortunately, I do not have a windows machine available, so I can't really write a fix for this.

If you provide a PR with a fix though, I'll verify everything still works on linux and we can merge it 😄