aboutsummaryrefslogtreecommitdiff
path: root/templates/default.mustache
diff options
context:
space:
mode:
Diffstat (limited to 'templates/default.mustache')
-rw-r--r--templates/default.mustache6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/default.mustache b/templates/default.mustache
index ad820a2..28b0c41 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