Hi,
I'm new to using SpaceVim/vim plugins in general and I just want to have a setup similar to VS Code where when I open a folder, it restores the session that I had last (files open, position in file, etc.). I see that startify and NERDTree are both plugins installed and enabled by default in SpaceVim, so I'd assume they should play nice together, but I'm having some pretty annoying issues.
However, the issue I'm getting despite trying those workarounds is when I start nvim without commands in a git repo (e.g in a folder ~/projectX on git branch Y I run nvim) it loads a corrupted session, where the file I was working on last is there on the left but without a tab title or syntax highlighting, and NERDTree loads as normal on the right, but in between these panels are empty windows that say NERDtree.
I also see errors like this:
Error detected while processing VimEnter Autocommands for "*"..function SpaceVim#welcome[11]..startify#insane_in_the_membrane[127]..User Autocommands for "StartifyReady"..function startify#session_load[29]..script /Users/rudhra.raveendran/.data/
nvim/session/projectx-branchy:
line 103:
E95: Buffer with this name already exists
And when I switch to the weird/broken NERDTree panels in the middle of my screen and try to close them, I get errors like this:
Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..266[50]..265[5]..<SNR>166_closeTreeWindow[5]..405[22]..nerdtree#exec[9]..function nerdtree#ui_glue#invokeKeyMap[1]..266[50]..265[5]..<SNR>166_closeTreeWindow[5]..405[22].
.nerdtree#exec[6]..BufLeave Autocommands for "NERD_tree_*":
E121: Undefined variable: b:NERDTree
or
Error detected while processing function SpaceVim#mapping#SmartClose[18]..BufLeave Autocommands for "NERD_tree_*":
E121: Undefined variable: b:NERDTree
I've attached my init.toml and myspacevim.vim, would anyone be able to help me here?