# 05. Color scheme

Most color schemes in Neovim can be installed as a plugin. There are a lot of color schemes. Here is a list of some of them on GitHub.

Some of my favorites include: `Gruvbox` `Dracula` `Tokionight`

Schemes are installed inside `plug#begin()` and `plug#end()`, let's declare our color scheme. To illustrate, I'll use Gruvbox:

    call plug#begin('~/.config/nvim/plugged')

    Plug 'gruvbox-community/gruvbox'

    call plug#end()

The example above shows how to declare the plugins you want to install via vim-plug . The Gruvbox plugin above is a shorthand notation for:

`Plug 'https://github.com/gruvbox-community/gruvbox'`

Once you declare your init.vim plugin, you need to perform a few more steps to install it:

Save your init.vim :w Load source init.vims :so % or restart Neovim Install color schemes :PlugInstall

The above commands need to be entered in NORMAL mode.

After the plug-in installation is complete, you can close vim-plug (buffer ) by typing `:q!`.

After installing your color scheme, we will need to tell Neovi to use it. Inside your init.vim, under plugin declarations, add the following lines of code:

    call plug#begin('~/.config/nvim/plugged')

    Plug 'gruvbox-community/gruvbox'

    call plug#end()

    " Selects your color scheme:
    colorscheme gruvbox
    " Automatically loads your scheme when Neovim starts
    autocmd VimEnter * colorscheme gruvbox

Save and exit init.vim with `:wq`. Next time you reopen Neovim, you should see the new color scheme!

You can change the color scheme while Neovim is running in this way:

`:colorscheme -> click <space> <Tab>`

Copyright © 2024 - 2025 🚀 ApolloNvim / Lukáš Kaňka