-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: custom animatations and opacity (#8)
Abstracts the animation stages to allow for users to supply custom versions. Adds the ability to change window opacity Also overhauls architecture to separate concerns a bit more.
- Loading branch information
Showing
18 changed files
with
1,168 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,37 @@ | ||
local M = {} | ||
|
||
function M.setup() | ||
vim.cmd[[ | ||
hi default NotifyERROR guifg=#8A1F1F | ||
hi default NotifyWARN guifg=#79491D | ||
hi default NotifyINFO guifg=#4F6752 | ||
hi default NotifyDEBUG guifg=#8B8B8B | ||
hi default NotifyTRACE guifg=#4F3552 | ||
hi default NotifyERRORTitle guifg=#F70067 | ||
hi default NotifyWARNTitle guifg=#F79000 | ||
hi default NotifyINFOTitle guifg=#A9FF68 | ||
hi default NotifyDEBUGTitle guifg=#8B8B8B | ||
hi default NotifyTRACETitle guifg=#D484FF | ||
]] | ||
vim.cmd([[ | ||
hi default NotifyERRORBorder guifg=#8A1F1F | ||
hi default NotifyWARNBorder guifg=#79491D | ||
hi default NotifyINFOBorder guifg=#4F6752 | ||
hi default NotifyDEBUGBorder guifg=#8B8B8B | ||
hi default NotifyTRACEBorder guifg=#4F3552 | ||
hi default NotifyERRORIcon guifg=#F70067 | ||
hi default NotifyWARNIcon guifg=#F79000 | ||
hi default NotifyINFOIcon guifg=#A9FF68 | ||
hi default NotifyDEBUGIcon guifg=#8B8B8B | ||
hi default NotifyTRACEIcon guifg=#D484FF | ||
hi default NotifyERRORTitle guifg=#F70067 | ||
hi default NotifyWARNTitle guifg=#F79000 | ||
hi default NotifyINFOTitle guifg=#A9FF68 | ||
hi default NotifyDEBUGTitle guifg=#8B8B8B | ||
hi default NotifyTRACETitle guifg=#D484FF | ||
hi default link NotifyERRORBody Normal | ||
hi default link NotifyWARNBody Normal | ||
hi default link NotifyINFOBody Normal | ||
hi default link NotifyDEBUGBody Normal | ||
hi default link NotifyTRACEBody Normal | ||
]]) | ||
end | ||
|
||
M.setup() | ||
|
||
vim.cmd[[ | ||
augroup nvim_notify | ||
vim.cmd([[ | ||
augroup NvimNotifyRefreshHighlights | ||
autocmd! | ||
autocmd ColorScheme * lua require('notify.config.highlights').setup() | ||
augroup END | ||
]] | ||
]]) | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.