svrana / neosolarized.nvim

Truecolor solarized theme for neovim in Lua using colorbuddy
Other
158 stars 35 forks source link

Cannot switch back to theme #30

Closed nicos68 closed 6 months ago

nicos68 commented 1 year ago

If nvim is set to any other color theme, then calling :colorscheme neosolarized has no effect. Should I use another command(s) if I want to switch back to neosolarized ?

tan-wei commented 1 year ago

Met the same issue. And I can confirm that if we call :colorscheme neosolarized and then query which colorscheme we used, it just prints "default".

svrana commented 12 months ago

While it'd be easy enough to make :colorscheme neosolarized switch to neosolarized (by calling lua require('neosolarized').setup() in colors/neosolarized.vim) it would not preserve any options you passed into setup the first time. In retrospect, this makes the use of a setup function for a colorscheme not the greatest fit. I'm hesitant to add this since it won't always work, but maybe it's better than nothing.

nicos68 commented 12 months ago

Actually to be fair I decided to move away from this color scheme. I stayed with it for a while because I find it very satisfying visually but I recently changed office and needed to switch between light and dark theme more often because of lighting conditions. I started fiddling with the setup method and was making progress as you can see on my dotfiles but I still had bugs and problems when switching back and forth between themes like nvim tree staying with the previous theme, or broken colors in the completion popup. So I gave up and decided it was easier using more advanced themes that handle all those cases like nightfox or catppuccin.

Still a great theme if you don’t need to switch though. Maybe retrofitting it with tools like lush or themer could bring improvements …

svrana commented 6 months ago

closed by PR #34