Vim: python and ale changes
This commit is contained in:
parent
ff293987b5
commit
5ec2811662
1 changed files with 27 additions and 1 deletions
28
files/.vimrc
28
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 <buffer> <c-h> <Plug>IMAP_JumpForward
|
||||
autocmd FileType tex,latex,context,plaintex imap <buffer> <c-h> <Plug>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 <LocalLeader>b <Esc>:Black<CR>
|
||||
autocmd FileType python set colorcolumn=88
|
||||
autocmd FileType python set textwidth=87
|
||||
augroup END
|
||||
let g:jedi#goto_definitions_command = "<LocalLeader>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
|
||||
|
|
Loading…
Reference in a new issue