aboutsummaryrefslogtreecommitdiff
path: root/colors/base16-snazzy.vim
diff options
context:
space:
mode:
authorChris Kempson <chriskempson@users.noreply.github.com>2019-06-07 08:16:35 +0100
committerGitHub <noreply@github.com>2019-06-07 08:16:35 +0100
commitf7ce526165985c58ff0601f89a14b59b78638405 (patch)
treec062e0fd92de03c61e86f27e18c6e79a2e08dbd9 /colors/base16-snazzy.vim
parent2073e2dd9fa0172ccdba92b3f0df25642a69f7db (diff)
parent4533d1ccab2483deabc743e51321d29a259a819e (diff)
Merge pull request #198 from danielwe/master
Use local variables, don't modify a: dict
Diffstat (limited to 'colors/base16-snazzy.vim')
-rw-r--r--colors/base16-snazzy.vim16
1 files changed, 8 insertions, 8 deletions
diff --git a/colors/base16-snazzy.vim b/colors/base16-snazzy.vim
index 190abf1..540478e 100644
--- a/colors/base16-snazzy.vim
+++ b/colors/base16-snazzy.vim
@@ -123,14 +123,14 @@ if has("nvim")
endif
elseif has('terminal')
let g:terminal_ansi_colors = [
- \ "#1e1f29",
+ \ "#282a36",
\ "#ff5c57",
\ "#5af78e",
\ "#f3f99d",
\ "#57c7ff",
\ "#ff6ac1",
\ "#9aedfe",
- \ "#eff0eb",
+ \ "#e2e4e5",
\ "#78787e",
\ "#ff5c57",
\ "#5af78e",
@@ -150,8 +150,8 @@ let g:colors_name = "base16-snazzy"
" Highlighting function
" 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, "")
+ let l:attr = get(a:, 1, "")
+ let l:guisp = get(a:, 2, "")
if a:guifg != ""
exec "hi " . a:group . " guifg=#" . a:guifg
@@ -165,11 +165,11 @@ function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, ...)
if a:ctermbg != ""
exec "hi " . a:group . " ctermbg=" . a:ctermbg
endif
- if a:attr != ""
- exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr
+ if l:attr != ""
+ exec "hi " . a:group . " gui=" . l:attr . " cterm=" . l:attr
endif
- if a:guisp != ""
- exec "hi " . a:group . " guisp=#" . a:guisp
+ if l:guisp != ""
+ exec "hi " . a:group . " guisp=#" . l:guisp
endif
endfunction