Skip to content

Commit

Permalink
feat: add nvim-notify support
Browse files Browse the repository at this point in the history
  • Loading branch information
wadackel committed Aug 23, 2024
1 parent 9888bd2 commit 6ac6335
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ From now on, we will gradually support it :dog:
- [null-ls.nvim](https://github.com/jose-elias-alvarez/null-ls.nvim)
- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp)
- [nvim-hlslens](https://github.com/kevinhwang91/nvim-hlslens)
- [nvim-notify](https://github.com/rcarriga/nvim-notify)
- [nvim-tree/nvim-tree.lua](https://github.com/nvim-tree/nvim-tree.lua)
- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)
Expand Down
22 changes: 22 additions & 0 deletions colors/dogrun.vim
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ hi ErrorMsg guifg=#ff9494 ctermfg=210 guibg=NONE ctermbg=NONE gui=bold cterm=bol
hi WarningMsg guifg=#ac8b83 ctermfg=138 gui=bold cterm=bold
hi MoreMsg guifg=#73c1a9 ctermfg=79
hi ModeMsg guifg=#73c1a9 ctermfg=79
hi Debug guifg=#9ea3c0 ctermfg=146
hi Todo guifg=#a8a384 ctermfg=144 guibg=NONE ctermbg=NONE gui=bold cterm=bold
hi Pmenu guifg=#9ea3c0 ctermfg=146 guibg=#32364c ctermbg=237
hi PmenuSel guifg=#9ea3c0 ctermfg=146 guibg=#424865 ctermbg=60
Expand Down Expand Up @@ -313,6 +314,27 @@ hi FidgetTitle guifg=#73c1a9 ctermfg=79 gui=bold cterm=bold
hi FidgetTask guifg=#545c8c ctermfg=60
hi HlSearchLens guifg=#545c8c ctermfg=60 gui=italic cterm=italic
hi HlSearchLensNear guifg=#545c8c ctermfg=60 gui=italic cterm=italic
hi NotifyBackground guibg=#222433 ctermbg=235
hi NotifyERRORBorder guifg=#cc8a8a ctermfg=174
hi NotifyWARNBorder guifg=#796b68 ctermfg=242
hi NotifyINFOBorder guifg=#628e80 ctermfg=66
hi NotifyDEBUGBorder guifg=#82838d ctermfg=102
hi NotifyTRACEBorder guifg=#628e80 ctermfg=66
hi NotifyERRORIcon guifg=#ff9494 ctermfg=210
hi NotifyWARNIcon guifg=#ac8b83 ctermfg=138
hi NotifyINFOIcon guifg=#82dabf ctermfg=115
hi NotifyDEBUGIcon guifg=#9ea3c0 ctermfg=146
hi NotifyTRACEIcon guifg=#82dabf ctermfg=115
hi NotifyERRORTitle guifg=#ff9494 ctermfg=210
hi NotifyWARNTitle guifg=#ac8b83 ctermfg=138
hi NotifyINFOTitle guifg=#82dabf ctermfg=115
hi NotifyDEBUGTitle guifg=#9ea3c0 ctermfg=146
hi NotifyTRACETitle guifg=#82dabf ctermfg=115
hi NotifyERRORBody guifg=#9ea3c0 ctermfg=146
hi NotifyWARNBody guifg=#9ea3c0 ctermfg=146
hi NotifyINFOBody guifg=#9ea3c0 ctermfg=146
hi NotifyDEBUGBody guifg=#9ea3c0 ctermfg=146
hi NotifyTRACEBody guifg=#9ea3c0 ctermfg=146
if has("nvim")
let g:terminal_color_0 = '#111219'
let g:terminal_color_1 = '#e58585'
Expand Down
30 changes: 30 additions & 0 deletions generator/src/highlight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,16 @@ pub fn get_palette() -> Palette {
def!(morefg, extends!(teal));
def!(errorbg, extends!(mainbg));
def!(errorfg, extends!(red, 0.0, 0.0, 0.0));
def!(errorborder, extends!(errorfg, 0.0, -0.1, -0.2));
def!(warningbg, extends!(mainbg));
def!(warningfg, extends!(orange, 0.0, 0.0, 0.0));
def!(warningborder, extends!(orange, 0.0, -0.1, -0.2));
def!(infobg, extends!(mainbg));
def!(infofg, extends!(teal, 0.0, 0.0, 0.1));
def!(infoborder, extends!(teal, 0.0, -0.1, -0.2));
def!(debugbg, extends!(mainbg));
def!(debugfg, extends!(mainfg));
def!(debugborder, extends!(debugfg, 0.0, -0.1, -0.2));

// visual
def!(visualbg, extends!(purple, 0.0, 0.2, -0.4));
Expand Down Expand Up @@ -371,6 +377,7 @@ pub fn get_highlights() -> Vec<Highlight> {
hi!("WarningMsg", warningfg, -, -, Bold, -),
hi!("MoreMsg", morefg, -, -, -, -),
hi!("ModeMsg", morefg, -, -, -, -),
hi!("Debug", mainfg, -, -, -, -),
hi!("Todo", yellow, NONE, -, Bold, -),
hi!("Pmenu", pmenufg, pmenubg, -, -, -),
hi!("PmenuSel", pmenuselfg, pmenuselbg, -, -, -),
Expand Down Expand Up @@ -736,5 +743,28 @@ pub fn get_highlights() -> Vec<Highlight> {
// https://github.com/kevinhwang91/nvim-hlslens
hi!("HlSearchLens", weakfg, -, -, Italic, -),
hi!("HlSearchLensNear", weakfg, -, -, Italic, -),
// nvim-notify
// https://github.com/rcarriga/nvim-notify
hi!("NotifyBackground", -, mainbg, -, -, -),
hi!("NotifyERRORBorder", errorborder, -, -, -, -),
hi!("NotifyWARNBorder", warningborder, -, -, -, -),
hi!("NotifyINFOBorder", infoborder, -, -, -, -),
hi!("NotifyDEBUGBorder", debugborder, -, -, -, -),
hi!("NotifyTRACEBorder", infoborder, -, -, -, -),
hi!("NotifyERRORIcon", errorfg, -, -, -, -),
hi!("NotifyWARNIcon", warningfg, -, -, -, -),
hi!("NotifyINFOIcon", infofg, -, -, -, -),
hi!("NotifyDEBUGIcon", debugfg, -, -, -, -),
hi!("NotifyTRACEIcon", infofg, -, -, -, -),
hi!("NotifyERRORTitle", errorfg, -, -, -, -),
hi!("NotifyWARNTitle", warningfg, -, -, -, -),
hi!("NotifyINFOTitle", infofg, -, -, -, -),
hi!("NotifyDEBUGTitle", debugfg, -, -, -, -),
hi!("NotifyTRACETitle", infofg, -, -, -, -),
hi!("NotifyERRORBody", mainfg, -, -, -, -),
hi!("NotifyWARNBody", mainfg, -, -, -, -),
hi!("NotifyINFOBody", mainfg, -, -, -, -),
hi!("NotifyDEBUGBody", mainfg, -, -, -, -),
hi!("NotifyTRACEBody", mainfg, -, -, -, -),
]
}

0 comments on commit 6ac6335

Please sign in to comment.