datsfilipe / min-theme.nvim

Porting Min Theme from Visual Studio Code to Neovim.
MIT License
42 stars 2 forks source link

setup() is broken #4

Closed heiytor closed 8 months ago

heiytor commented 8 months ago

According to the documentation, this should work.

require('min-theme').setup({ theme = 'light' })

However, I needed to change to:

require('min-theme').colorscheme()

Also, trying to call the setup before the colorscheme does not work either:

local theme = require('min-theme')

theme.setup({ theme = 'light' })
theme.colorscheme()

To change the theme to min-theme-light, the call needed to be:

vim.o.background = 'light'
require('min-theme').colorscheme()
datsfilipe commented 8 months ago

Hi! so the thing is:

theme = 'dark', -- String: 'dark' or 'light', determines the colorscheme used (obs: if your config sets vim.o.background, this will do nothing)

So check if, in your config, vim.o.background is being set anywhere else.

Note: That behavior is very common for Neovim colorschemes, but I think I will add this to the Readme anyways.

datsfilipe commented 8 months ago

I'm going to close it for now.