I’m trying to change the background of the neovim using lua.
-- init.lua
vim.o.termguicolors = true
vim.api.nvim_set_hl(0, "Normal", { bg="#04110d" })
The expected result should be like this (modified directly via Terminal settings)
But it renders like this
I use the default Ubuntu Terminal with default configuration.
I tried to use a “simplier” color and it works
Instead of this
vim.api.nvim_set_hl(0, "Normal", { bg="#04110d" })
I used this
vim.api.nvim_set_hl(0, "Normal", { bg="#ff0000" })
(sorry for the red image)
Does anyone know the root cause of the problem and how I can fix that?
I’d expect the specified color #04110d to work as expected (displaying the dark green background).
Thanks