diff --git a/files/.vimrc b/files/.vimrc index fdc083d..f9d7c0c 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -72,8 +72,9 @@ Plugin 'chrisbra/csv.vim' Plugin 'let-def/vimbufsync' Plugin 'the-lambda-church/coquille' Plugin 'vim-latex/vim-latex' -Plugin 'let-def/ocp-indent-vim' Plugin 'christoomey/vim-tmux-navigator' +Plugin 'let-def/ocp-indent-vim' +Plugin 'psf/black' call vundle#end() " required filetype plugin indent on " required @@ -95,6 +96,7 @@ let g:syntastic_quiet_messages = {"regex":'pragma once in'} "" LaTeX let g:syntastic_tex_checkers = [ 'chktex' ] + "" Python let g:syntastic_python_python_exec = '/usr/bin/python3' "" C++ @@ -105,6 +107,19 @@ let g:syntastic_cpp_compiler_options = '-std=c++14 -Wall -Wextra' let g:syntastic_python_checkers = ['flake8'] " let g:syntastic_ignore_files = [] +""""""""""""""""" ALE + +let g:ale_c_clangtidy_checks = ['clang-diagnostic-*', 'clang-analyzer-*', '*', '-google-readability-*', '-llvm-include-order', '-hicpp-braces-around-statements', '-readability-braces-around-statements', '-cppcoreguidelines-avoid-magic-numbers', '-readability-magic-numbers'] +let g:ale_c_parse_makefile=1 + +""""""""""""""""" LaTeX +augroup tex_mappings + autocmd! + autocmd FileType tex,latex,context,plaintex nmap IMAP_JumpForward + autocmd FileType tex,latex,context,plaintex imap IMAP_JumpForward +augroup END + + """"""""""""""""" OCaml au BufEnter *.ml setf ocaml au BufEnter *.mli setf ocaml @@ -121,6 +136,13 @@ execute "set rtp+=" . g:opamshare . "/merlin/vimbufsync" execute "set rtp+=" . g:opamshare . "/ocp-indent/vim" """"""""""""""""" Python +augroup python_settings + autocmd! + autocmd BufWritePre *.py execute ':Black' + autocmd FileType python nmap b :Black + autocmd FileType python set colorcolumn=88 + autocmd FileType python set textwidth=87 +augroup END let g:jedi#goto_definitions_command = "l" let g:jedi#completions_enabled = 0 @@ -129,6 +151,10 @@ set laststatus=2 let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 set noshowmode +let g:airline_left_sep = '»' +let g:airline_left_sep = '▶' +let g:airline_right_sep = '«' +let g:airline_right_sep = '◀' """"""""""""""""" clang-format let g:clang_format#detect_style_file = 1