This article isLearn Neovim full configuration and escape VSCodeThe fifth in a series

Please subscribe on Github

Neovim Theme configuration

This chapter describes how to install and configure a theme for Neovim.

The theme is the same as normal plugins, which are installed using packer.nvim from the previous chapter.

The theme I’m currently using is Gruvbox. Nvim recommends using it.

Theme color matching installation

If you open the Gruvbox.nvim home page, you’ll see how to install it, and the other skins are similar

Open lua/plugins.lua and add the gruvbox theme code

return require('packer').startup(function()
    -- Packer can manage itself
    use 'wbthomason/packer.nvim'
    -- gruvbox theme
    use {
        "ellisonleao/gruvbox.nvim",
        requires = {"rktjmp/lush.nvim"}
    }
end)
Copy the code

:wq Save the changes and exit. Open the file again and run PackerSync

Everything already up to date! The installation is successful.

Open init.vim and add

set background=dark
colorscheme gruvbox
Copy the code

Save the front:

Save exit, reopen after:

Nord. Nvim color matching

Try another nord.nvim

Modify the lua/plugins. Lua

return require('packer').startup(function()
    -- Packer can manage itself
    use 'wbthomason/packer.nvim'
    -- gruvbox theme
    use {
        "ellisonleao/gruvbox.nvim",
        requires = {"rktjmp/lush.nvim"}
    }
    -- nord theme
    use 'shaunsingh/nord.nvim'
end)
Copy the code

:wq Save the changes and exit. Open the file again and run PackerSync

After successful installation, modify init.vim

set background=dark
colorscheme nord
Copy the code

The effect of the reopening

At the end of this chapter, if you have more beautiful skin recommendations, feel free to let me know in the comments.

The next chapter begins with some commonly used plug-ins.

  • Next chapter :(I’m writing, please click like to follow, thank you)
  • Back to the home page:Learn Neovim full configuration, escape VSCode