mirror of
https://github.com/chriskempson/base16-vim.git
synced 2026-11-25 15:14:30 +03:00
Merge pull request #188 from aaether32323/change_hi_function
Let Base16hi optionally omit `attr` and `guisp`
This commit is contained in:
1 file changed
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user