From 5d377f04359a99ed0243c879139c1fa0e82a84ca Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 23 Jul 2023 23:41:06 -0500 Subject: [PATCH] feat(nvim): improve nvim notify appearance --- .../nvim/lua/plugins/configs/kanagawa.lua | 21 +++++++++++++++++++ .../nvim/lua/plugins/configs/nvim-notify.lua | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua index a7eaef0c..a40a3cac 100644 --- a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua +++ b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua @@ -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 diff --git a/dots/.config/nvim/lua/plugins/configs/nvim-notify.lua b/dots/.config/nvim/lua/plugins/configs/nvim-notify.lua index 50740285..bec74b52 100755 --- a/dots/.config/nvim/lua/plugins/configs/nvim-notify.lua +++ b/dots/.config/nvim/lua/plugins/configs/nvim-notify.lua @@ -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,