feat(nvim): improve nvim notify appearance

This commit is contained in:
Price Hiller 2023-07-23 23:41:06 -05:00
parent 344abe93b9
commit 5d377f0435
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
2 changed files with 23 additions and 1 deletions

View File

@ -24,6 +24,12 @@ require("kanagawa").setup({
},
overrides = function(palette)
local colors = palette.palette
vim.api.nvim_set_hl(0, "NvimNotifyError", { fg = colors.samuraiRed })
vim.api.nvim_set_hl(0, "NvimNotifyWarn", { fg = colors.roninYellow })
vim.api.nvim_set_hl(0, "NvimNotifyInfo", { fg = colors.springGreen })
vim.api.nvim_set_hl(0, "NvimNotifyDebug", { fg = colors.crystalBlue })
vim.api.nvim_set_hl(0, "NvimNotifyTrace", { fg = colors.oniViolet })
local overrides = {
DiffAdd = { bg = colors.winterGreen, fg = colors.autumnGreen },
DiffDelete = { bg = colors.winterREd, fg = colors.autumnRed },
@ -170,6 +176,21 @@ require("kanagawa").setup({
RainbowDelimiterGreen = { fg = colors.springGreen },
RainbowDelimiterViolet = { fg = colors.oniViolet },
RainbowDelimiterCyan = { fg = colors.lightBlue },
NotifyERRORBorder = { link = "NvimNotifyError" },
NotifyERRORIcon = { link = "NvimNotifyError" },
NotifyERRORTitle = { link = "NvimNotifyError" },
NotifyWARNBorder = { link = "NvimNotifyWarn" },
NotifyWARNIcon = { link = "NvimNotifyWarn" },
NotifyWARNTitle = { link = "NvimNotifyWarn" },
NotifyINFOBorder = { link = "NvimNotifyInfo" },
NotifyINFOIcon = { link = "NvimNotifyInfo" },
NotifyINFOTitle = { link = "NvimNotifyInfo" },
NotifyDEBUGBorder = { link = "NvimNotifyDebug" },
NotifyDEBUGIcon = { link = "NvimNotifyDebug" },
NotifyDEBUGTitle = { link = "NvimNotifyDebug" },
NotifyTRACEBorder = { link = "NvimNotifyTrace" },
NotifyTRACEIcon = { link = "NvimNotifyTrace" },
NotifyTRACETitle = { link = "NvimNotifyTrace" },
}
return overrides

View File

@ -1,6 +1,7 @@
require("notify").setup({
-- Animation style (see below for details)
stages = "fade_in_slide_out",
stages = "slide",
fps = 60,
-- Function called when a new window is opened, use for changing win settings/config
on_open = nil,