fix notify background
This commit is contained in:
parent
85de25c267
commit
c5de9593e6
2 changed files with 48 additions and 1 deletions
|
@ -1,5 +1,15 @@
|
|||
return {
|
||||
{ "rose-pine/neovim", name = "rose-pine" },
|
||||
{
|
||||
"rose-pine/neovim",
|
||||
name = "rose-pine",
|
||||
config = function()
|
||||
require("rose-pine").setup({
|
||||
groups = {
|
||||
background = "none",
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
-- Configure LazyVim to load rose-pine
|
||||
{
|
||||
|
|
37
lua/plugins/notify.lua
Normal file
37
lua/plugins/notify.lua
Normal file
|
@ -0,0 +1,37 @@
|
|||
return {
|
||||
{
|
||||
"rcarriga/nvim-notify",
|
||||
keys = {
|
||||
{
|
||||
"<leader>un",
|
||||
function()
|
||||
require("notify").dismiss({ silent = true, pending = true })
|
||||
end,
|
||||
desc = "Dismiss all Notifications",
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
timeout = 3000,
|
||||
max_height = function()
|
||||
return math.floor(vim.o.lines * 0.75)
|
||||
end,
|
||||
max_width = function()
|
||||
return math.floor(vim.o.columns * 0.75)
|
||||
end,
|
||||
},
|
||||
config = function()
|
||||
require("notify").setup({
|
||||
background_colour = "#191724",
|
||||
})
|
||||
end,
|
||||
init = function()
|
||||
-- when noice is not enabled, install notify on VeryLazy
|
||||
local Util = require("lazyvim.util")
|
||||
if not Util.has("noice.nvim") then
|
||||
Util.on_very_lazy(function()
|
||||
vim.notify = require("notify")
|
||||
end)
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue