This commit is contained in:
parent
91420d6c92
commit
bda0a10ae6
@ -26,6 +26,7 @@ Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
|||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
Plug 'luochen1990/rainbow'
|
Plug 'luochen1990/rainbow'
|
||||||
Plug 'psf/black'
|
Plug 'psf/black'
|
||||||
|
Plug 'fisadev/vim-isort'
|
||||||
Plug 'jvirtanen/vim-hcl' " HCL files used by terraform
|
Plug 'jvirtanen/vim-hcl' " HCL files used by terraform
|
||||||
" show git diff in sign column
|
" show git diff in sign column
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
@ -59,13 +60,17 @@ let g:black_linelength = 88
|
|||||||
let g:ycm_autoclose_preview_window_after_insertion = 1
|
let g:ycm_autoclose_preview_window_after_insertion = 1
|
||||||
let g:ycm_autoclose_preview_window_after_completion = 1
|
let g:ycm_autoclose_preview_window_after_completion = 1
|
||||||
|
|
||||||
|
" isort
|
||||||
|
let g:vim_isort_python_version = 'python3'
|
||||||
|
let g:vim_isort_config_overrides = {'profile': 'black'}
|
||||||
|
|
||||||
" NERDTREE
|
" NERDTREE
|
||||||
" open nerdtree when no file is specified on startup
|
" open nerdtree when no file is specified on startup
|
||||||
autocmd StdinReadPre * let s:std_in=1
|
autocmd StdinReadPre * let s:std_in=1
|
||||||
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
||||||
" toggle nerdtree keyboard shortcut
|
" toggle nerdtree keyboard shortcut
|
||||||
map <C-t> :NERDTreeToggle<CR>
|
map <C-t> :NERDTreeToggle<CR>
|
||||||
nnoremap <F9> :Black<CR>
|
nnoremap <F9> :Black<CR> :Isort <CR>
|
||||||
|
|
||||||
" RAINBOW_PARENTHESES
|
" RAINBOW_PARENTHESES
|
||||||
au FileType c,cpp,py call rainbow#load()
|
au FileType c,cpp,py call rainbow#load()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user