Given the following situation:
I have a file on my D-drive, and I added a project (D:/foo/bar) to Treemacs.
When opening the file D:/foo/bar/baz, Treemacs didn't recognize the file was followed in Treemacs.
I went down the line and found treemacs--project-of-buffer was nil. Eventually I found this line:
|
(when path (setf treemacs--project-of-buffer (treemacs-is-path path :in-workspace))))) |
It sends path was d:/foo/bar/baz, so treemacs-is-path returned nil.
Switching the drive letter to d instead of D fixed the issue.