From 5635dcac8f9bad60011e3f5508eca9b9b6f660cf Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 14 May 2021 02:46:13 +0200 Subject: [PATCH] vim: changed rainbow plugin --- .config/nvim/init.vim | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 295a3cb..f3f34d0 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -13,10 +13,10 @@ Plug 'airblade/vim-gitgutter' " git upgrades Plug 'alvan/vim-closetag' " auto close HTML tags Plug 'donRaphaco/neotex' , {'for': 'tex'} " asynchronous pdf rendering for pdf Plug 'fatih/vim-go' , {'for': 'go'} " better support for golang -Plug 'frazrepo/vim-rainbow' " colorized matching brackets Plug 'itchyny/lightline.vim' " fancy statusline Plug 'junegunn/fzf.vim' " quickly jump files using fzf Plug 'lervag/vimtex' , {'for' : 'tex'} " tex library for autocompletion +Plug 'luochen1990/rainbow' " colorized matching brackets Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'} " show tags Plug 'mattesgroeger/vim-bookmarks' " Set Bookmarks Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} " autocompletion @@ -53,9 +53,6 @@ let g:neotex_enabled = 2 " fatih/vim-go let g:go_def_mapping_enabled = 0 -" frazrepo/vim-rainbow -au FileType,BufNewFile,BufRead java,c,cpp,py,h call rainbow#load() - " itchyny/lightline.vim let g:lightline = { 'colorscheme': 'codedark'} set noshowmode @@ -64,6 +61,38 @@ set noshowmode let $FZF_DEFAULT_COMMAND = 'find . ~ -type f' nmap :FZF +" luochen1990/rainbow +let g:rainbow_conf = { +\ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick'], +\ 'ctermfgs': ['lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'], +\ 'guis': [''], +\ 'cterms': [''], +\ 'operators': '_,_', +\ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/{/ end=/}/ fold'], +\ 'separately': { +\ '*': {}, +\ 'markdown': { +\ 'parentheses_options': 'containedin=markdownCode contained', +\ }, +\ 'lisp': { +\ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick', 'darkorchid3'], +\ }, +\ '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, +\ } +\} + " majutsushi/tagbar map :TagbarToggle