Set `termguicolors` within Tundra
mattjamesdev opened this issue · comments
I noticed other colourscheme plugins set termguicolors
within their plugin, whereas this one doesn't. This causes the colourscheme to not be applied properly if termguicolors
is not set explicitly by the user elsewhere in their config.
Setting the colourscheme on its own (everything is blank):
After entering :set termguicolors
:
Based on what I've seen in other colourschemes' "init.lua"s, I think it should be as simple as adding the line vim.opt.termguicolors = true
somewhere in the M.load
function of lua/nvim-tundra/init.lua
.
Nice, this should be relatively easy to implement (and I’ll probably sort it out this weekend). Thanks for bringing this to my attention :)
Commit 2182bed in the dev
branch adds the suggested vim.opt.termguicolors = true
to the colorscheme. I decided to add it externally from the M.load
function in colors/tundra.lua
as I want M.load
to be specifically for applying or reloading highlight groups. I'll leave it a couple of days before merging to main
and closing the issue to check it works as intended :)
Awesome, thanks for looking into it!