I am slowly switching my neovim configurations to Lua. I am currently using the colour scheme https://github.com/nightsense/snow. It sets the background colour to a light-grey, while I want it to be a darker tone of grey. Previously, when using vimL, I used to use the following snippet to change the background colour (to match my terminal colour).
set termguicolors
try
colorscheme snow
set background=dark
hi Normal ctermbg=232 guibg=#0a0a0a
catch /^Vim\%((\a\+)\)\=:E185/
colorscheme default
endtry
I am trying to achieve the same in my Neovim Lua based configuration. I tried the following piece of code to do so.
vim.cmd('set background=dark')
vim.cmd('colorscheme snow')
vim.cmd('hi Normal guibg=#0a0a0a')
Unfortunately, this does not seem to work. What am I doing wrong here?