Skip to content

Commit 794ef83

Browse files
committed
fix: don't set colorscheme when using vs code
1 parent 60849e9 commit 794ef83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/astroui/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ end
3838

3939
--- Set the configured colorscheme
4040
function M.set_colorscheme()
41+
if vim.g.vscode then return end -- don't set colorscheme when using neovim in VS Code
4142
local colorscheme = M.config.colorscheme
4243
if colorscheme and not pcall(vim.cmd.colorscheme, colorscheme) then
4344
require("astrocore").notify(("Error setting up colorscheme: `%s`"):format(colorscheme), vim.log.levels.ERROR)

0 commit comments

Comments
 (0)