diff --git a/lua/vscode/init.lua b/lua/vscode/init.lua index 7ea1100..340e228 100644 --- a/lua/vscode/init.lua +++ b/lua/vscode/init.lua @@ -19,7 +19,11 @@ vscode.load = function(style) vim.o.termguicolors = true vim.g.colors_name = 'vscode' - vim.o.background = style or config.opts.style or vim.o.background + local background = style or config.opts.style + if background and background ~= vim.o.background then + vim.o.background = background + end + theme.set_highlights(config.opts) theme.link_highlight()