X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/16f202c3b8ea1bb2625d3319bf42d8fc57f33814..8a97a4231254ab25e017fecd10ba2068bd588e52:/.vim/bundle/password-store/syntax/obfuscated.vim diff --git a/.vim/bundle/password-store/syntax/obfuscated.vim b/.vim/bundle/password-store/syntax/obfuscated.vim new file mode 100644 index 0000000..0a53ea8 --- /dev/null +++ b/.vim/bundle/password-store/syntax/obfuscated.vim @@ -0,0 +1,21 @@ +if exists('b:current_syntax') | finish| endif + +setlocal cursorline + +" set redacted colors from colorscheme +let s:error_highlight_str = execute( 'highlight Error' ) +let s:error_fg = matchstr(s:error_highlight_str, 'guifg=\zs\S*') + +let s:comment_highlight_str = execute( 'highlight Comment' ) +let s:comment_fg = matchstr(s:comment_highlight_str, 'guifg=\zs\S*') + +execute 'highlight password_store_password ' . + \ ' guibg=' . s:comment_fg . + \ ' guifg=' . s:comment_fg . + \ ' ctermfg=1 ctermbg=1' + +execute 'highlight password_store_password_short ' . + \ ' guibg=' . s:error_fg . + \ ' guifg=' . s:error_fg . + \ ' ctermfg=1 ctermbg=1' +