fix(themes): gruvbox notify warning

This commit is contained in:
Matt Leong 2021-11-13 08:54:23 -08:00
parent 461d5c9f12
commit 4796732c93
3 changed files with 8 additions and 1 deletions

View file

@ -17,4 +17,9 @@ if vim.tbl_isempty(colors) then
return false
end
colors.notify_bg = 'Normal'
if config.theme == 'gruvbox.nvim' then
colors.notify_bg = colors.bg
end
return colors

View file

@ -1,5 +1,4 @@
local cosmic_modules = {
'cosmic.compiled',
'cosmic.disabled',
'cosmic.pluginsInit',
'cosmic.commands',
@ -16,6 +15,7 @@ for _, mod in ipairs(cosmic_modules) do
end
local user_config_modules = {
'cosmic.compiled',
'cosmic.config.editor',
'cosmic.config.mappings',
}

View file

@ -65,6 +65,7 @@ return packer.startup(function()
'ellisonleao/gruvbox.nvim',
requires = { 'rktjmp/lush.nvim' },
config = function()
-- todo: does nothing
vim.o.background = 'dark'
vim.cmd('colorscheme gruvbox')
end,
@ -93,6 +94,7 @@ return packer.startup(function()
DEBUG = icons.debug,
TRACE = icons.trace,
},
background_colour = require('cosmic.core.theme.colors').notify_bg,
})
vim.notify = require('notify')
end,