From 7c2509c1c88296aaf5de55362ff0d1e829eced6e Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Fri, 30 Apr 2021 21:52:04 +0300 Subject: [PATCH] neovim: use custom parenthesis colors --- home/.config/nvim/plug-config/coc.vim | 2 +- home/.config/nvim/plug-config/rainbow.vim | 26 ++++++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/home/.config/nvim/plug-config/coc.vim b/home/.config/nvim/plug-config/coc.vim index cb598dc..8dc2a69 100644 --- a/home/.config/nvim/plug-config/coc.vim +++ b/home/.config/nvim/plug-config/coc.vim @@ -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', diff --git a/home/.config/nvim/plug-config/rainbow.vim b/home/.config/nvim/plug-config/rainbow.vim index 6c65dfe..fd9041f 100644 --- a/home/.config/nvim/plug-config/rainbow.vim +++ b/home/.config/nvim/plug-config/rainbow.vim @@ -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