sontungexpt / witch

The main theme for stinvim Easy to use, easy to config, easy to extend.
MIT License
42 stars 1 forks source link

Does not set g:colors_name #8

Open fingolfin19 opened 6 months ago

fingolfin19 commented 6 months ago

The colorscheme does not set g:colors_name when loaded. This causes an incorrect result when running :colorscheme without an argument. I have script that saves the current colorscheme name and reloads it after some steps that does not work with witch due to this.

Edit: I guess this happens only when loading the theme via something like :colorscheme or :Telescope colorschemes without running :lua require('witch').setup()

sontungexpt commented 6 months ago

The colorscheme does not set g:colors_name when loaded. This causes an incorrect result when running :colorscheme without an argument. I have script that saves the current colorscheme name and reloads it after some steps that does not work with witch due to this.

Edit: I guess this happens only when loading the theme via something like :colorscheme or :Telescope colorschemes without running :lua require('witch').setup()

Can I ask about your expected behavior? For example: If the colorscheme is witch-light then you want g:colors_name should be witch-light right? I read about g:colors_name in the docs, but I absolutely don't understand it completely, So if you know more about that can you explain me more about it? I simply thought that it's just the name of the theme already.