Modern Neovim — init.lua
We will configure Neovim into a full-blown development environment using the latest features and plugins. With Neovim at the core of our development environment, we can become a more efficient developer.
This article is part of the Modern Neovim series.
The Neovim configuration files are available in this repository.
Getting Started
A Modern Development Environment
With the latest Neovim release and the availability of Lua-based plugins, Neovim can meet all our development needs for every programming language.
In this article, we are going to
- Configure an isolated Neovim development environment.
- Configure Neovim using the
lazy.nvim
plugin manager. - Leverage
lazy.nvim
to configure color schemes, startup screens, and install other plugins for fuzzy finding, version control, etc.
Isolated Environment
Just like the beginner series, we will create an isolated configuration environment for Neovim by leveraging the XDC_CONFIG_HOME
, XDG_CACHE_HOME
and XDG_CONFIG_DATA
variables (:h xdg
).
Check out the beginner series if you want to understand how it works.
The screenshot below shows the installation in action.
In the install.sh
script, we use the alias mnv
to start the customized Neovim instance.
To start the Neovim instance without going through the installation process again, use the mnv.sh
script.
For a beginner guide using the packer.nvim
plugin manager, check out this article!