diff options
author | Arctic Ice Studio <development@arcticicestudio.com> | 2019-04-14 07:06:35 +0200 |
---|---|---|
committer | Arctic Ice Studio <development@arcticicestudio.com> | 2019-04-14 07:06:35 +0200 |
commit | 1ddc782e1efb627bb67d5b5598ee0e0a156bb03a (patch) | |
tree | 32a8e7a6f24bdc606e9b1853195a413af2688474 /colors | |
parent | d2774cbb8b1b902557316f0a72841546b3416aa8 (diff) | |
download | nord-vim-1ddc782e1efb627bb67d5b5598ee0e0a156bb03a.tar.gz |
Add theme config for bolder vertical split line
Previously the `VertSplit` (1) (`:help VertSplit`) key used `nord1` as
background color by default making the line appear to be very lumpy.
This commit changes this style to use `nord0` as bavkground instead to
visually merge with the background so only the separator charaters are
a visual indiciator for the split line whih makes it look more
lightweight and unclutters the overall appeareance.
To allow user who liked the previous implementation to keep the style
this commit also adds a new `nord_bold_vertical_split_line` theme config
that can be assigned to `1` to achieve the legacy design.
The README also include information and hints how to change the
separator character by customizing Vim's `fillchars` (2)
(`:help fillchars`) variable.
References:
(1) http://vimdoc.sourceforge.net/htmldoc/syntax.html#hl-VertSplit
(2) http://vimdoc.sourceforge.net/htmldoc/options.html#'fillchars'
GH-132
Diffstat (limited to 'colors')
-rwxr-xr-x | colors/nord.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/colors/nord.vim b/colors/nord.vim index 1bbfaf8..9b4ad25 100755 --- a/colors/nord.vim +++ b/colors/nord.vim @@ -122,6 +122,10 @@ if !exists("g:nord_cursor_line_number_background") let g:nord_cursor_line_number_background = 0 endif +if !exists("g:nord_bold_vertical_split_line") + let g:nord_bold_vertical_split_line = 0 +endif + function! s:hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) if a:guifg != "" exec "hi " . a:group . " guifg=" . a:guifg @@ -248,7 +252,12 @@ call s:hi("TabLineSel", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "N "+--- Window ---+ call s:hi("Title", s:nord4_gui, "", "NONE", "", "NONE", "") -call s:hi("VertSplit", s:nord2_gui, s:nord1_gui, s:nord3_term, s:nord1_term, "NONE", "") + +if g:nord_bold_vertical_split_line == 0 + call s:hi("VertSplit", s:nord2_gui, s:nord0_gui, s:nord3_term, "NONE", "NONE", "") +else + call s:hi("VertSplit", s:nord2_gui, s:nord1_gui, s:nord3_term, s:nord1_term, "NONE", "") +endif "+----------------------+ "+ Language Base Groups + |