nvim/init.early: move &background, &termguicolors into early

As many plugins use these when setting colors and highlights, leading to
poor coloring now that truecolor support is fixed in tmux
This commit is contained in:
Paul Stemmet 2022-09-11 17:37:15 +00:00
parent d6827a4fe5
commit ee4fac3834
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
1 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,10 @@ local function psoxizsh_early_config()
g.my_color_scheme = 'one'
end
-- Color settings
o.background = 'dark'
o.termguicolors = true
-- Hide buffers don't close them
o.hidden = true
@ -172,8 +176,6 @@ local function psoxizsh_post_config(plugs)
-- Reload configuration
vimp.nnoremap('<leader>vs', function() vimp.unmap_all() plugs:reload() end)
o.background = 'dark'
o.termguicolors = true
g.one_allow_italics = 1
cmd('highlight Comment term=italic cterm=italic gui=italic')
end