diff options
author | Subho Banerjee <[email protected]> | 2021-09-26 02:20:50 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-26 10:50:50 +0330 |
commit | 61b56a7bb19771247fc2c40b453d0f905581125e (patch) | |
tree | 0c3c922fa28e61ea00592b019f5003f67219369b /lua | |
parent | 464f092ada7b6e54f5ad65aea0ae3c1b55f618f4 (diff) |
fix: Adding `Diff*` highlight groups in onedarker (#1594)
Fixes #1576
Diffstat (limited to 'lua')
-rw-r--r-- | lua/onedarker/diff.lua | 12 | ||||
-rw-r--r-- | lua/onedarker/init.lua | 2 | ||||
-rw-r--r-- | lua/onedarker/palette.lua | 5 |
3 files changed, 19 insertions, 0 deletions
diff --git a/lua/onedarker/diff.lua b/lua/onedarker/diff.lua new file mode 100644 index 00000000..49463daa --- /dev/null +++ b/lua/onedarker/diff.lua @@ -0,0 +1,12 @@ +local diff = { + DiffAdd = { fg = C.none, bg = C.diff_add }, + DiffDelete = { fg = C.none, bg = C.diff_delete }, + DiffChange = { fg = C.none, bg = C.diff_change, style = "bold" }, + DiffText = { fg = C.none, bg = C.diff_text }, + DiffAdded = { fg = C.green }, + DiffRemoved = { fg = C.red }, + DiffFile = { fg = C.cyan }, + DiffIndexLine = { fg = C.gray }, +} + +return diff diff --git a/lua/onedarker/init.lua b/lua/onedarker/init.lua index 852e0103..73043ac3 100644 --- a/lua/onedarker/init.lua +++ b/lua/onedarker/init.lua @@ -15,6 +15,7 @@ local markdown = require "onedarker.markdown" local Whichkey = require "onedarker.Whichkey" local Git = require "onedarker.Git" local LSP = require "onedarker.LSP" +local diff = require "onedarker.diff" local skeletons = { highlights, @@ -23,6 +24,7 @@ local skeletons = { Whichkey, Git, LSP, + diff, } for _, skeleton in ipairs(skeletons) do diff --git a/lua/onedarker/palette.lua b/lua/onedarker/palette.lua index c3116b1e..ab15d392 100644 --- a/lua/onedarker/palette.lua +++ b/lua/onedarker/palette.lua @@ -1,4 +1,5 @@ local colors = { + none = "NONE", fg = "#abb2bf", bg = "#1f2227", alt_bg = "#282c34", @@ -34,6 +35,10 @@ local colors = { purple_test = "#ff007c", cyan_test = "#00dfff", ui_blue = "#264F78", + diff_add = "#303d27", + diff_delete = "#6e3b40", + diff_change = "#18344c", + diff_text = "#265478", } return colors |