Neovim for Beginners — Managing Projects
Managing multiple projects is always challenging. In this article, we will see how Neovim can help us. We are going to
- Configure the buffer line to make it easy to use tabs for multiple projects.
- Configure plugins to search for projects in the file system.
- Configure plugins to switch among multiple projects.
- Explore plugins to manage sessions and the working directory.
This article is part of the Neovim for Beginners series.
The Neovim configuration files can be found in this repository.
Getting Started
This article provides tips and tricks that we can use to manage multiple projects. In a previous article, I have shown you the basic Vim/Neovim way of managing projects, plugins and Lua scripts to manage and switch projects, and useful Tmux plugins if we use Tmux to manage multiple Vim/Neovim sessions.
Do go through the article if you are new to Vim/Neovim.
Every developer has a different workflow for managing projects. I used Tmux + Neovim previously. The tips in this article are my current workflow.
Tabs for Multiple Projects — Configure Buffer Line
The usual Vim/Neovim way of managing multiple projects is to use 1 tab per project. There are challenges to using this approach. For example,
- We want to see the buffers related to the active tab/project only.
- We want to navigate, pick or close the buffers related to the current project only.
We used bufferline.nvim
to manage the buffer line. Let’s configure it to fit our requirements.
Project Files by Tabs
The behavior that we want would be
- If there is only 1 tab, files for…