diff --git a/roles/dotfiles/files/vimrc b/roles/dotfiles/files/vimrc index 54cab63..7a77dd8 100644 --- a/roles/dotfiles/files/vimrc +++ b/roles/dotfiles/files/vimrc @@ -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 :NERDTreeToggle -nnoremap :Black +nnoremap :Black :Isort " RAINBOW_PARENTHESES au FileType c,cpp,py call rainbow#load()