From 9ba1ad4b2e8a7190d2c5c3940252c4a1282485f0 Mon Sep 17 00:00:00 2001 From: Aman <29077900+aaether32323@users.noreply.github.com> Date: Thu, 4 Oct 2018 19:32:29 -0400 Subject: Let Base16hi optionally omit `attr` and `guisp` --- templates/default.mustache | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'templates/default.mustache') 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 -- cgit v1.2.3