Skip to content

Colorschemes

Finding Colorschemes

You can find a list of tree-sitter supported/compatible themes which you can use here.

Installing Colorschemes

Use your plugin manager to install a colorscheme. E.g. adding the following line to your lazy setup to install the catppuccin theme.

{ "catppuccin/nvim", name = "catppuccin", priority = 1000 }

Setting the Theme

Add the following line to your init.lua file or somewhere in your lua/ configuration.

vim.cmd.colorscheme "catppuccin-mocha"

Some themes may have variants, and the documentation for each theme should walk you throught the appropriate name to use to set the theme.

Using and Switching between multiple themes

Install multiple themes, e.g.:

{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
{ "neanias/everforest-nvim", priority = 1000 }

To set a colorscheme in Neovim, you use the command :colorscheme. We can use this to set up custom keybinds to switch to different themes.

E.g.:

vim.keymap.set("n", "<leader>cc", "<cmd>colorscheme catppuccin-mocha<cr>")
vim.keymap.set("n", "<leader>ce", "<cmd>colorscheme everforest<cr>")

This sets a custom keymap for when we are in normal mode (when you press Esc or Ctrl + [), sets the keybind (the leader key followed by some keys), and the actual command to run in command mode (the equivlanet of you typing :colorscheme name and hitting enter).