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.
Setting the Theme
Add the following line to your init.lua
file or somewhere in your lua/
configuration.
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.:
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.:
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).