Closed nyngwang closed 1 year ago
To be honest, this problem is very difficult to solve.
It does currently use g:colors_name
to record the name, after the setup function call, g:colors_name
must be visual_studio_code
.
Unfortunately, since :colorscheme
must support both dark
and light
modes, they can only be set by visual_studio_code_dark
and visual_studio_code_light
commands.
I can't get g:colors_name
to become visual_studio_code_dark
or visual_studio_code_light
(since lualine
needs to read theme colors), so this is a sticking point.
For example, I have a session plugin that uses
colors_name
to restore colorscheme on session restore. To change to (one of) your colorscheme I have to callvisual_studio_code_dark
notvisual_studio_code
, which the session plugin calls (and failed).Maybe you could try to set
vim.g.colors_name
so that the two will be consistent.