Skip to content

Commit 62cd28c

Browse files
committed
Add highlight for ft-diff
Fix highlighting for the diff filetype. By default, syntax/diff.vim uses highlights for `Identifier` and `Special` for added and removed lines: hi def link diffAdded Identifier hi def link diffRemoved Special As these are both highlighted in white in monokai.nvim, it makes diff highlighting display everything as plain white. Fix this by adding explicit highlights for diffAdded and diffRemoved in appropriate colors.
1 parent feaeb36 commit 62cd28c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lua/monokai.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ M.load_syntax = function(palette)
238238
fg = palette.black,
239239
bg = palette.aqua,
240240
},
241+
diffAdded = {
242+
fg = palette.green,
243+
},
244+
diffRemoved = {
245+
fg = palette.pink,
246+
},
241247
Folded = {
242248
fg = palette.grey,
243249
bg = palette.base3,

0 commit comments

Comments
 (0)