vim: add use_rainbow option

master
an 2019-07-29 08:36:56 -04:00
parent eb5437946f
commit 603af787bb
1 changed files with 14 additions and 9 deletions

View File

@ -48,14 +48,15 @@ let _agw.colors=[
\ 'base16-unikitty-dark',
\]
let _agw.columns=80 " GUI columns
let _agw.rows=24 " GUI rows
let _agw.cr_scheme=-2 " color from s:colors, -1=random, -2=default
let _agw.use_number=0 " 0=no number, 1=enable relativenumber, 2=enable number
let _agw.use_list=1 " enable whitespace visibility (2=also newlines)
let _agw.use_tagbar=0 " enable tagbar addon
let _agw.use_vsp=0 " enable vertical split on enter
let _agw.use_ruby=0 " enable ruby scripts
let _agw.columns=80 " GUI columns
let _agw.rows=24 " GUI rows
let _agw.cr_scheme=-2 " color from s:colors, -1=random, -2=default
let _agw.use_number=0 " 0=no number, 1=enable relativenumber, 2=enable number
let _agw.use_list=1 " enable whitespace visibility (2=also newlines)
let _agw.use_tagbar=0 " enable tagbar addon
let _agw.use_vsp=0 " enable vertical split on enter
let _agw.use_ruby=0 " enable ruby scripts
let _agw.use_rainbow=0 " enable rainbow addon
runtime! vconf
@ -376,7 +377,9 @@ com W execute 'w !sudo tee > /dev/null %' | edit!
au FileType c,cpp,cs,java,php,ruby,rust,python,go,zscript,markdown au BufWritePre <buffer> call _agw.strip_white()
" Enable rainbow braces
au FileType c,cpp,cs,java,php,ruby,rust,python,go,zscript,html,scheme,racket,lisp,json au BufEnter <buffer> RainbowToggleOn
if _agw.use_rainbow != 0
au FileType c,cpp,cs,java,php,ruby,rust,python,go,zscript,html,scheme,racket,lisp,json au BufEnter <buffer> RainbowToggleOn
endif
" markdown sucks
au FileType markdown set comments+=fb:- comments-=b:- indentexpr=
@ -548,6 +551,7 @@ nn Q gqap
" Rainbow Config -------------------------------------------------------------|
if _agw.use_rainbow != 0
let rainbow_conf = {
\ 'guifgs': ['#ff533d', '#ff973d', '#ffe13d', '#91ff3d', '#3dffd8', '#3daeff', '#6a3dff', '#ee3dff'],
\ 'ctermfgs': ['lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'],
@ -588,5 +592,6 @@ let rainbow_conf = {
\ 'sh': 0,
\ }
\}
end
" EOF