Neovim for Beginners — Color Scheme
We use the Everforest theme which is a green-based color scheme. It is designed to be warm and soft to protect developers’ eyes. To better customize Neovim to fit our needs, let’s learn how to create Neovim color schemes.
In this article, we are going to
- Learn the basics of the Neovim color scheme. We will configure a colorizer plugin, check out the built-in color schemes, understand Treesitter highlight groups and the base16 architecture for building themes.
- Configure color schemes with and without using base16.
This article is part of the Neovim for Beginners series.
The Neovim configuration files can be found in this repository.
Let’s get started by installing a plugin to help us better see the colors in Neovim. There are several plugins that we can use.
Either one of these plugins can be used. In this article, we are going to use the colorizer.lua plugin.
We can install this plugin using
cmd = "ColorizerToggle",
config = function()
Once the plugin is installed, we can easily see the colors for all color codes in a buffer by using the
To see the code for all the built-in color schemes, type
To learn the basics of writing a color scheme file, we can refer to the runtime