diff options
-rw-r--r-- | templates/default.mustache | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/default.mustache b/templates/default.mustache index b0ba92a..d8e74b9 100644 --- a/templates/default.mustache +++ b/templates/default.mustache @@ -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 |