Skip to content

Commit 6ac6335

Browse files
committed
feat: add nvim-notify support
1 parent 9888bd2 commit 6ac6335

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ From now on, we will gradually support it :dog:
115115
- [null-ls.nvim](https://github.com/jose-elias-alvarez/null-ls.nvim)
116116
- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp)
117117
- [nvim-hlslens](https://github.com/kevinhwang91/nvim-hlslens)
118+
- [nvim-notify](https://github.com/rcarriga/nvim-notify)
118119
- [nvim-tree/nvim-tree.lua](https://github.com/nvim-tree/nvim-tree.lua)
119120
- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
120121
- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)

colors/dogrun.vim

+22
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ hi ErrorMsg guifg=#ff9494 ctermfg=210 guibg=NONE ctermbg=NONE gui=bold cterm=bol
6565
hi WarningMsg guifg=#ac8b83 ctermfg=138 gui=bold cterm=bold
6666
hi MoreMsg guifg=#73c1a9 ctermfg=79
6767
hi ModeMsg guifg=#73c1a9 ctermfg=79
68+
hi Debug guifg=#9ea3c0 ctermfg=146
6869
hi Todo guifg=#a8a384 ctermfg=144 guibg=NONE ctermbg=NONE gui=bold cterm=bold
6970
hi Pmenu guifg=#9ea3c0 ctermfg=146 guibg=#32364c ctermbg=237
7071
hi PmenuSel guifg=#9ea3c0 ctermfg=146 guibg=#424865 ctermbg=60
@@ -313,6 +314,27 @@ hi FidgetTitle guifg=#73c1a9 ctermfg=79 gui=bold cterm=bold
313314
hi FidgetTask guifg=#545c8c ctermfg=60
314315
hi HlSearchLens guifg=#545c8c ctermfg=60 gui=italic cterm=italic
315316
hi HlSearchLensNear guifg=#545c8c ctermfg=60 gui=italic cterm=italic
317+
hi NotifyBackground guibg=#222433 ctermbg=235
318+
hi NotifyERRORBorder guifg=#cc8a8a ctermfg=174
319+
hi NotifyWARNBorder guifg=#796b68 ctermfg=242
320+
hi NotifyINFOBorder guifg=#628e80 ctermfg=66
321+
hi NotifyDEBUGBorder guifg=#82838d ctermfg=102
322+
hi NotifyTRACEBorder guifg=#628e80 ctermfg=66
323+
hi NotifyERRORIcon guifg=#ff9494 ctermfg=210
324+
hi NotifyWARNIcon guifg=#ac8b83 ctermfg=138
325+
hi NotifyINFOIcon guifg=#82dabf ctermfg=115
326+
hi NotifyDEBUGIcon guifg=#9ea3c0 ctermfg=146
327+
hi NotifyTRACEIcon guifg=#82dabf ctermfg=115
328+
hi NotifyERRORTitle guifg=#ff9494 ctermfg=210
329+
hi NotifyWARNTitle guifg=#ac8b83 ctermfg=138
330+
hi NotifyINFOTitle guifg=#82dabf ctermfg=115
331+
hi NotifyDEBUGTitle guifg=#9ea3c0 ctermfg=146
332+
hi NotifyTRACETitle guifg=#82dabf ctermfg=115
333+
hi NotifyERRORBody guifg=#9ea3c0 ctermfg=146
334+
hi NotifyWARNBody guifg=#9ea3c0 ctermfg=146
335+
hi NotifyINFOBody guifg=#9ea3c0 ctermfg=146
336+
hi NotifyDEBUGBody guifg=#9ea3c0 ctermfg=146
337+
hi NotifyTRACEBody guifg=#9ea3c0 ctermfg=146
316338
if has("nvim")
317339
let g:terminal_color_0 = '#111219'
318340
let g:terminal_color_1 = '#e58585'

generator/src/highlight.rs

+30
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,16 @@ pub fn get_palette() -> Palette {
224224
def!(morefg, extends!(teal));
225225
def!(errorbg, extends!(mainbg));
226226
def!(errorfg, extends!(red, 0.0, 0.0, 0.0));
227+
def!(errorborder, extends!(errorfg, 0.0, -0.1, -0.2));
227228
def!(warningbg, extends!(mainbg));
228229
def!(warningfg, extends!(orange, 0.0, 0.0, 0.0));
230+
def!(warningborder, extends!(orange, 0.0, -0.1, -0.2));
229231
def!(infobg, extends!(mainbg));
230232
def!(infofg, extends!(teal, 0.0, 0.0, 0.1));
233+
def!(infoborder, extends!(teal, 0.0, -0.1, -0.2));
234+
def!(debugbg, extends!(mainbg));
235+
def!(debugfg, extends!(mainfg));
236+
def!(debugborder, extends!(debugfg, 0.0, -0.1, -0.2));
231237

232238
// visual
233239
def!(visualbg, extends!(purple, 0.0, 0.2, -0.4));
@@ -371,6 +377,7 @@ pub fn get_highlights() -> Vec<Highlight> {
371377
hi!("WarningMsg", warningfg, -, -, Bold, -),
372378
hi!("MoreMsg", morefg, -, -, -, -),
373379
hi!("ModeMsg", morefg, -, -, -, -),
380+
hi!("Debug", mainfg, -, -, -, -),
374381
hi!("Todo", yellow, NONE, -, Bold, -),
375382
hi!("Pmenu", pmenufg, pmenubg, -, -, -),
376383
hi!("PmenuSel", pmenuselfg, pmenuselbg, -, -, -),
@@ -736,5 +743,28 @@ pub fn get_highlights() -> Vec<Highlight> {
736743
// https://github.com/kevinhwang91/nvim-hlslens
737744
hi!("HlSearchLens", weakfg, -, -, Italic, -),
738745
hi!("HlSearchLensNear", weakfg, -, -, Italic, -),
746+
// nvim-notify
747+
// https://github.com/rcarriga/nvim-notify
748+
hi!("NotifyBackground", -, mainbg, -, -, -),
749+
hi!("NotifyERRORBorder", errorborder, -, -, -, -),
750+
hi!("NotifyWARNBorder", warningborder, -, -, -, -),
751+
hi!("NotifyINFOBorder", infoborder, -, -, -, -),
752+
hi!("NotifyDEBUGBorder", debugborder, -, -, -, -),
753+
hi!("NotifyTRACEBorder", infoborder, -, -, -, -),
754+
hi!("NotifyERRORIcon", errorfg, -, -, -, -),
755+
hi!("NotifyWARNIcon", warningfg, -, -, -, -),
756+
hi!("NotifyINFOIcon", infofg, -, -, -, -),
757+
hi!("NotifyDEBUGIcon", debugfg, -, -, -, -),
758+
hi!("NotifyTRACEIcon", infofg, -, -, -, -),
759+
hi!("NotifyERRORTitle", errorfg, -, -, -, -),
760+
hi!("NotifyWARNTitle", warningfg, -, -, -, -),
761+
hi!("NotifyINFOTitle", infofg, -, -, -, -),
762+
hi!("NotifyDEBUGTitle", debugfg, -, -, -, -),
763+
hi!("NotifyTRACETitle", infofg, -, -, -, -),
764+
hi!("NotifyERRORBody", mainfg, -, -, -, -),
765+
hi!("NotifyWARNBody", mainfg, -, -, -, -),
766+
hi!("NotifyINFOBody", mainfg, -, -, -, -),
767+
hi!("NotifyDEBUGBody", mainfg, -, -, -, -),
768+
hi!("NotifyTRACEBody", mainfg, -, -, -, -),
739769
]
740770
}

0 commit comments

Comments
 (0)