aboutsummaryrefslogtreecommitdiffstats
path: root/colors/nord.vim
diff options
context:
space:
mode:
authorGravatar xulongwu4 <xulongwu4@gmail.com>2020-05-07 03:21:20 -0400
committerGravatar GitHub <noreply@github.com>2020-05-07 09:21:20 +0200
commit6323f662d6d2046f81889ff4c2df5fa824dab6ac (patch)
tree37891a56aa77dee5cafde97045bda2b5724a4239 /colors/nord.vim
parent974a91906db5dda21d95c8bcd2d63ddebc060949 (diff)
downloadnord-vim-6323f662d6d2046f81889ff4c2df5fa824dab6ac.tar.gz
Use transparent background for gutter line number in GUI mode (#204)
The `LineNr` and `CursorLineNr` highlight groups now have a transparent background in GUI mode. Before it was set to `nord0_gui` which worked fine in most cases. However, some plugins use these highlight groups to render their content in a popup window which can potentially have a different background color. This caused some issues e.g. for the fuzzy search plugin LeaderF [1]. The compatibility with the `g:nord_cursor_line_number_background` theme configuration has been verified to work as expected in both modes when it is set to `0` or `1`. This change is not related to the terminal mode or when using `set notermguicolors` since `ctermbg` for `LineNr` and `CursorLineNr` is set to `NONE` by default. [1]: https://github.com/Yggdroot/LeaderF
Diffstat (limited to 'colors/nord.vim')
-rwxr-xr-xcolors/nord.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/colors/nord.vim b/colors/nord.vim
index aa0c161..a975a1e 100755
--- a/colors/nord.vim
+++ b/colors/nord.vim
@@ -170,7 +170,7 @@ call s:hi("Cursor", s:nord0_gui, s:nord4_gui, "", "NONE", "", "")
call s:hi("CursorLine", "", s:nord1_gui, "NONE", s:nord1_term, "NONE", "")
call s:hi("Error", s:nord4_gui, s:nord11_gui, "", s:nord11_term, "", "")
call s:hi("iCursor", s:nord0_gui, s:nord4_gui, "", "NONE", "", "")
-call s:hi("LineNr", s:nord3_gui, s:nord0_gui, s:nord3_term, "NONE", "", "")
+call s:hi("LineNr", s:nord3_gui, "NONE", s:nord3_term, "NONE", "", "")
call s:hi("MatchParen", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "", "")
call s:hi("NonText", s:nord2_gui, "", s:nord3_term, "", "", "")
call s:hi("Normal", s:nord4_gui, s:nord0_gui, "NONE", "NONE", "", "")
@@ -219,7 +219,7 @@ endif
"+--- Gutter ---+
call s:hi("CursorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "")
if g:nord_cursor_line_number_background == 0
- call s:hi("CursorLineNr", s:nord4_gui, s:nord0_gui, "NONE", "", "NONE", "")
+ call s:hi("CursorLineNr", s:nord4_gui, "", "NONE", "", "NONE", "")
else
call s:hi("CursorLineNr", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "")
endif