fix(themes): gruvbox notify warning
This commit is contained in:
parent
461d5c9f12
commit
4796732c93
3 changed files with 8 additions and 1 deletions
|
@ -17,4 +17,9 @@ if vim.tbl_isempty(colors) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
colors.notify_bg = 'Normal'
|
||||||
|
if config.theme == 'gruvbox.nvim' then
|
||||||
|
colors.notify_bg = colors.bg
|
||||||
|
end
|
||||||
|
|
||||||
return colors
|
return colors
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
local cosmic_modules = {
|
local cosmic_modules = {
|
||||||
'cosmic.compiled',
|
|
||||||
'cosmic.disabled',
|
'cosmic.disabled',
|
||||||
'cosmic.pluginsInit',
|
'cosmic.pluginsInit',
|
||||||
'cosmic.commands',
|
'cosmic.commands',
|
||||||
|
@ -16,6 +15,7 @@ for _, mod in ipairs(cosmic_modules) do
|
||||||
end
|
end
|
||||||
|
|
||||||
local user_config_modules = {
|
local user_config_modules = {
|
||||||
|
'cosmic.compiled',
|
||||||
'cosmic.config.editor',
|
'cosmic.config.editor',
|
||||||
'cosmic.config.mappings',
|
'cosmic.config.mappings',
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,6 +65,7 @@ return packer.startup(function()
|
||||||
'ellisonleao/gruvbox.nvim',
|
'ellisonleao/gruvbox.nvim',
|
||||||
requires = { 'rktjmp/lush.nvim' },
|
requires = { 'rktjmp/lush.nvim' },
|
||||||
config = function()
|
config = function()
|
||||||
|
-- todo: does nothing
|
||||||
vim.o.background = 'dark'
|
vim.o.background = 'dark'
|
||||||
vim.cmd('colorscheme gruvbox')
|
vim.cmd('colorscheme gruvbox')
|
||||||
end,
|
end,
|
||||||
|
@ -93,6 +94,7 @@ return packer.startup(function()
|
||||||
DEBUG = icons.debug,
|
DEBUG = icons.debug,
|
||||||
TRACE = icons.trace,
|
TRACE = icons.trace,
|
||||||
},
|
},
|
||||||
|
background_colour = require('cosmic.core.theme.colors').notify_bg,
|
||||||
})
|
})
|
||||||
vim.notify = require('notify')
|
vim.notify = require('notify')
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Reference in a new issue