Closed sychen52 closed 3 years ago
I am using the following setup:
vim.g.material_italic_comments = true
vim.g.material_italic_keywords = false
vim.g.material_italic_functions = false
vim.g.material_italic_variables = false
vim.g.material_italic_string = false
vim.g.material_contrast = true
vim.g.material_borders = true
vim.g.material_disable_background = false
vim.g.material_style_fix = false
It should load the color theme randomly.
I am doing the following. and everytime it loads a green background at startup:
BTW, after startup, I can toggle different colorschemes using :Material
require('material.functions').change_style("monokai")
I just tried setup the variables as you do. It does not help. I guess it is the way I enable the colorscheme?
material_style_fix and material_style need to be setup before plugin is loaded. packer e.g.
{
opt = true,
setup = function()
vim.g.material_style = 'mariana'
vim.g.material_style_fix = false
end,
config = function()
require("material").set()
end
}
This still does not work. It still loads the Emerald on startup
vim.g.material_style = 'monokai'
vim.g.material_style_fix = false
require("material").set()
Anyway. Thank you so much for these awesome colorschemes.
I found the following works for me.
require('material')
require('material.functions').change_style("monokai")
I used to have just the second line. and it works. But I guess it is not the proper way to do it.
This only happens since last update.