Create your own Neovim colorscheme
NOTE
This article is inspired by Writing a Neovim Theme in Lua
What makes a theme
- Entry point of the theme
lua
-- colors/colorscheme_name.lua
package.loaded["colorscheme_name"] = nil
require("colorscheme_name").colorscheme()
1
2
3
2
3
- A module exports
colorscheme()
function.
lua
-- lua/colorscheme_name.lua
local M = {}
function M.colorscheme()
-- code here
end
return M
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8