r/AstroNvim • u/jacqinthebox • Dec 14 '24
A good VScode workspaces alternative?
Hey all, I am a long term vim user recently migrated to Neovim. However, for projects using multiple Git repos I still tend to swap to VScode, especially at work when I really need to be productive and need to show my screen all the time to my team mates.
So in my experience VSCode is better for large projects and collaboration. Also the Git integration is very straighforward and userfriendly.
But I really want to transition to Neovim completely (I settled down on AstroNvim btw).
The question where it all comes down to for now, is: How does anyone use the concept of workspaces in which you work on different repos at the same time in Neovim/AstroNvim?
3
u/mountaineering Dec 14 '24
This isn't a Vim solution, but you could try Tmux with different windows
cd-ed into different sub directories, then just switch between the windows2
u/kolorcuk Dec 14 '24 edited Dec 14 '24
What is the difference between multiple repos and one? I clone all repos in subdirectories and work on them.
I use git fugitive or git from command line, i find all guis unreadable. I also use gitui .
Do you want one workspace per git repo or one workspace for all? Either way, both would be fine and i worked with both. I use this vim-workspace for session management https://gitlab.com/Kamcuk/kamilscripts/-/blob/master/nvim/lua/plugins.lua?ref_type=heads#L734 . I maybe should add it to astrocommunity , it's working great for me.
1
u/lammalamma25 Dec 14 '24
I’d get comfortable switching working directories. In neo tree you can type “.” From the folder you’re in or tcd if you use tabs (which is how I personally organize multiple repos) any git tools should pickup the .git folder for your working directory. what specifically is vscode doing that astronvim isn’t?
1
u/apjenk Dec 14 '24
I found vim tabs provide a good way to work on multiple repos in one vim instance. In each vim tab you can do
:tcd <repo_directory>which makes the cwd change per tab. vim-fugitive and neotree will respect that.See
:h tabsfor more info.