mirror of
https://github.com/maxmx03/solarized.nvim.git
synced 2026-09-16 02:16:30 -04:00
11 lines
267 B
Lua
11 lines
267 B
Lua
local function onColorschemeChange()
|
|
if vim.g.colors_name == 'solarized' then
|
|
vim.api.nvim_command "lua require('solarized').setup(vim.g.user_config)"
|
|
end
|
|
end
|
|
|
|
vim.api.nvim_create_autocmd('ColorScheme', {
|
|
pattern = '*',
|
|
callback = onColorschemeChange,
|
|
})
|