neovim: use custom parenthesis colors

This commit is contained in:
Hoang Nguyen 2021-04-30 21:52:04 +03:00
parent d2e4a05027
commit 7c2509c1c8
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
2 changed files with 26 additions and 2 deletions

View File

@ -9,7 +9,6 @@ let g:coc_global_extensions = [
\ 'coc-lit-html',
\ 'coc-emmet',
\ 'coc-yaml',
\ 'coc-xml',
\ 'coc-css',
\ 'coc-cssmodules',
\ 'coc-json',
@ -25,6 +24,7 @@ let g:coc_global_extensions = [
\ 'coc-syntax',
\ 'coc-yank',
\ ]
" \ 'coc-xml',
" \ 'coc-go',
" \ 'coc-rls',
" \ 'coc-java',

View File

@ -1,7 +1,31 @@
" Rainbow parentheses
let g:rainbow_active = 1
let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}'], ['<', '>']]
" let g:rainbow_conf = {'guis': ['bold']}
"'guifgs': ['#e06c75', '#98c379', '#e5c07b', '#61afef', '#c678dd', '#56b6c2'],
let g:rainbow_conf = {
\ 'guifgs': ['#bf616a', '#a3be8c', '#ebcb8b', '#81a1c1', '#b48ead', '#88c0d0'],
\ 'ctermfgs': ['lightred', 'lightgreen', 'lightyellow', 'lightblue', 'lightmagenta', 'lightcyan'],
\ 'guis': ['bold'],
\ 'separately': {
\ '*': {},
\ 'markdown': {
\ 'parentheses_options': 'containedin=markdownCode contained',
\ },
\ 'haskell': {
\ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/\v\{\ze[^-]/ end=/}/ fold'],
\ },
\ 'vim': {
\ 'parentheses_options': 'containedin=vimFuncBody',
\ },
\ 'perl': {
\ 'syn_name_prefix': 'perlBlockFoldRainbow',
\ },
\ 'stylus': {
\ 'parentheses': ['start=/{/ end=/}/ fold contains=@colorableGroup'],
\ },
\ 'css': 0,
\ }
\}
" Rainbow csv
let g:disable_rainbow_key_mappings = 1