Skip to content

Commit

Permalink
feat: Add gitcommit hl for extra chars in commit description
Browse files Browse the repository at this point in the history
  • Loading branch information
polirritmico committed May 21, 2024
1 parent ec8ccd0 commit 46133f2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,7 @@ end,
Currently this extra files are generated:

<!-- extras:start -->

- [Monokai Nightasty Palettes](https://github.com/polirritmico/monokai-nightasty.nvim/tree/main/extras/palettes)
([palettes](extras/palettes))
- [Monokai Nightasty Palettes](https://github.com/polirritmico/monokai-nightasty.nvim/tree/main/extras/palettes) ([palettes](extras/palettes))
- [Kitty](https://sw.kovidgoyal.net/kitty/) ([kitty](extras/kitty))
- [Tmux](https://github.com/tmux/tmux/wiki) ([tmux](extras/tmux))
- [Zathura](https://pwmt.org/projects/zathura/) ([zathura](extras/zathura))
Expand Down
2 changes: 1 addition & 1 deletion doc/monokai-nightasty.nvim.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*monokai-nightasty.nvim.txt* For Neovim >= 0.9 Last change: 2024 May 17
*monokai-nightasty.nvim.txt* For Neovim >= 0.9 Last change: 2024 May 21

==============================================================================
Table of Contents *monokai-nightasty.nvim-table-of-contents*
Expand Down
5 changes: 4 additions & 1 deletion extras/palettes/monokai-nightasty_dark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ local highlights = {
["@comment.documentation"] = {
link = "Comment"
},
["@comment.warning.gitcommit"] = {
link = "DiagnosticUnnecessary"
},
["@constant"] = {
link = "Constant"
},
Expand Down Expand Up @@ -1228,7 +1231,7 @@ local highlights = {
fg = "#ffff87"
},
LineNr = {
fg = "#3e3e3e"
fg = "#4b4b4b"
},
LineNrBe = {
fg = "#a4e400"
Expand Down
5 changes: 4 additions & 1 deletion extras/palettes/monokai-nightasty_light.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ local highlights = {
["@comment.documentation"] = {
link = "Comment"
},
["@comment.warning.gitcommit"] = {
link = "DiagnosticUnnecessary"
},
["@constant"] = {
link = "Constant"
},
Expand Down Expand Up @@ -1228,7 +1231,7 @@ local highlights = {
fg = "#ff8f00"
},
LineNr = {
fg = "#c9c9c9"
fg = "#b2b2b2"
},
LineNrBe = {
fg = "#4fb000"
Expand Down
13 changes: 7 additions & 6 deletions lua/monokai-nightasty/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,6 @@ function M.setup(palette)
diffIndexLine = { fg = c.purple },
diffSubname = { fg = c.yellow },

-- git?
gitcommitHeader = { fg = c.blue },
gitcommitSelectedFile = { fg = c.yellow },
gitcommitSummary = { fg = c.fg },
gitcommitOverflow = { fg = c.magenta },

debugPC = { bg = c.bg_sidebar }, -- used for highlighting the current line in terminal-debug
debugBreakpoint = { bg = util.darken(c.info, 0.1), fg = c.info }, -- used for breakpoint colors in terminal-debug

Expand Down Expand Up @@ -193,6 +187,13 @@ function M.setup(palette)
healthSuccess = { fg = c.green_alt },
healthWarning = { fg = c.warning },

-- gitcommit
gitcommitHeader = { fg = c.blue },
gitcommitSelectedFile = { fg = c.yellow },
gitcommitSummary = { fg = c.fg },
gitcommitOverflow = { fg = c.magenta },
["@comment.warning.gitcommit"] = { link = "DiagnosticUnnecessary" },

--- TreeSitter
-- highlights from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/CONTRIBUTING.md#highlights

Expand Down

0 comments on commit 46133f2

Please sign in to comment.