Skip to content

Commit

Permalink
Try not to override auto background setting (Mofiqul#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
realh committed Jan 20, 2024
1 parent dda9e0e commit 964ecbd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/vscode/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 964ecbd

Please sign in to comment.