auto brackets closing + colors for them

This commit is contained in:
Bartek Stalewski 2020-03-03 12:53:09 +01:00
parent a9aacafc1e
commit a78c986a69

View file

@ -11,6 +11,7 @@ Plug 'airblade/vim-gitgutter'
Plug 'junegunn/limelight.vim' Plug 'junegunn/limelight.vim'
Plug 'hashivim/vim-terraform' Plug 'hashivim/vim-terraform'
Plug 'bitc/vim-bad-whitespace' Plug 'bitc/vim-bad-whitespace'
Plug 'frazrepo/vim-rainbow'
call plug#end() call plug#end()
set title set title
@ -82,6 +83,7 @@ autocmd! User GoyoLeave Limelight!
command! -bang -nargs=? -complete=dir Files command! -bang -nargs=? -complete=dir Files
\ call fzf#vim#files(<q-args>, {'options': ['-e', '--layout=reverse', '--height=20%', '--preview', 'bat --color=always --tabs=2 --style=plain --theme="Monokai Extended" {}']}, <bang>0) \ call fzf#vim#files(<q-args>, {'options': ['-e', '--layout=reverse', '--height=20%', '--preview', 'bat --color=always --tabs=2 --style=plain --theme="Monokai Extended" {}']}, <bang>0)
let g:rainbow_active = 1
let g:terraform_fmt_on_save=1 let g:terraform_fmt_on_save=1
let g:lightline = { let g:lightline = {
\ 'colorscheme': 'powerlineish', \ 'colorscheme': 'powerlineish',
@ -100,3 +102,11 @@ let g:lightline = {
function! LightLineReadonly() function! LightLineReadonly()
return &readonly && &filetype !=# 'help' ? 'RO' : '' return &readonly && &filetype !=# 'help' ? 'RO' : ''
endfunction endfunction
inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
inoremap { {}<left>
inoremap {<CR> {<CR>}<Esc>O<Tab>
inoremap {;<CR> {<CR>};<Esc>O<Tab>