Set color scheme in Neovim (Lua)

Listen to this article
AI voice: Charon • Click play to generate
0:00
--:--

To set a color scheme in Neovim using Lua add the following line to the init.lua file

vim.cmd [[colorscheme onedark]]

In the example above, I use Onedark as the color scheme, but you can use whatever you like.

I'm Feeling Lucky
Darryl Dias

Written by Darryl Dias

The AI guy and founder of Caprycon, building AI-powered tools, exploring emerging technologies, and sharing insights from the world of artificial intelligence