Merge pull request #188 from aaether32323/change_hi_function

Let Base16hi optionally omit `attr` and `guisp`
This commit is contained in:
Chris Kempson authored and GitHub committed 2018-10-08 13:38:31 +01:00
commit 4df653a1ae
1 file changed
+5 -1
+5 -1
View File
@@ -129,7 +129,11 @@ syntax reset
let g:colors_name = "base16-{{scheme-slug}}"
" Highlighting function
function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp)
" Optional variables are attributes and guisp
function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, ...)
let a:attr = get(a:, 1, "")
let a:guisp = get(a:, 2, "")
if a:guifg != ""
exec "hi " . a:group . " guifg=#" . a:guifg
endif