vimrc: add isort
All checks were successful
dotfiles/pipeline/head This commit looks good

This commit is contained in:
Johannes Rothe 2022-01-03 16:47:05 +01:00 committed by Johannes Rothe
parent 91420d6c92
commit bda0a10ae6

View File

@ -26,6 +26,7 @@ Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'luochen1990/rainbow'
Plug 'psf/black'
Plug 'fisadev/vim-isort'
Plug 'jvirtanen/vim-hcl' " HCL files used by terraform
" show git diff in sign column
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_completion = 1
" isort
let g:vim_isort_python_version = 'python3'
let g:vim_isort_config_overrides = {'profile': 'black'}
" NERDTREE
" open nerdtree when no file is specified on startup
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" toggle nerdtree keyboard shortcut
map <C-t> :NERDTreeToggle<CR>
nnoremap <F9> :Black<CR>
nnoremap <F9> :Black<CR> :Isort <CR>
" RAINBOW_PARENTHESES
au FileType c,cpp,py call rainbow#load()