From 46a34635071d096b605658b3e80ce3d0f193829b Mon Sep 17 00:00:00 2001 From: Freja Roberts Date: Sat, 7 Dec 2024 12:13:23 +0100 Subject: [PATCH] fix: #162 Use new highlight group for window splits --- lua/nord/theme.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/nord/theme.lua b/lua/nord/theme.lua index ba1e66e..bfe57e0 100644 --- a/lua/nord/theme.lua +++ b/lua/nord/theme.lua @@ -197,13 +197,18 @@ theme.loadEditor = function() editor.SignColumn = { fg = nord.nord4_gui, bg = nord.nord0_gui } end + local splitColor + -- Remove window split borders if vim.g.nord_borders then - editor.VertSplit = { fg = nord.nord2_gui } + splitColor = { fg = nord.nord2_gui } else - editor.VertSplit = { fg = nord.nord0_gui } + splitColor = { fg = nord.nord0_gui } end + editor.VertSplit = splitColor + editor.WinSeparator = splitColor + if vim.g.nord_uniform_diff_background then editor.DiffAdd = { fg = nord.nord14_gui, bg = nord.nord1_gui } -- diff mode: Added line editor.DiffChange = { fg = nord.nord13_gui, bg = nord.nord1_gui } -- diff mode: Changed line