Replace syntastic with Ale
This commit is contained in:
44
vimrc
44
vimrc
@ -1,6 +1,3 @@
|
|||||||
" For platform specific settings
|
|
||||||
let hostname = substitute(system('hostname'), '\n', '', '')
|
|
||||||
|
|
||||||
" Plugin management
|
" Plugin management
|
||||||
set nocompatible
|
set nocompatible
|
||||||
filetype off
|
filetype off
|
||||||
@ -15,19 +12,10 @@ Plugin 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
|||||||
Plugin 'ctrlpvim/ctrlp.vim'
|
Plugin 'ctrlpvim/ctrlp.vim'
|
||||||
" Class explorer
|
" Class explorer
|
||||||
Plugin 'majutsushi/tagbar', { 'on': 'TagbarToggle' }
|
Plugin 'majutsushi/tagbar', { 'on': 'TagbarToggle' }
|
||||||
" Code completion using <tab>
|
" Autocompletion
|
||||||
Plugin 'ervandew/supertab'
|
Plugin 'ycm-core/YouCompleteMe'
|
||||||
if hostname == "localhost"
|
" Syntax check
|
||||||
" Autocompletion
|
Plugin 'dense-analysis/ale'
|
||||||
Plugin 'ycm-core/YouCompleteMe'
|
|
||||||
" Syntax check
|
|
||||||
Plugin 'vim-syntastic/syntastic'
|
|
||||||
else
|
|
||||||
" Autocomplete for python
|
|
||||||
Plugin 'davidhalter/jedi-vim'
|
|
||||||
" Asynchronous syntax check
|
|
||||||
Plugin 'dense-analysis/ale'
|
|
||||||
endif
|
|
||||||
" Intelligent folding
|
" Intelligent folding
|
||||||
Plugin 'tmhedberg/SimpylFold'
|
Plugin 'tmhedberg/SimpylFold'
|
||||||
" Git management
|
" Git management
|
||||||
@ -59,10 +47,6 @@ set shiftwidth=0
|
|||||||
set autoindent
|
set autoindent
|
||||||
set smarttab
|
set smarttab
|
||||||
autocmd filetype python set expandtab
|
autocmd filetype python set expandtab
|
||||||
au BufNewFile,BufRead *.js, *.html, *.css, *.json
|
|
||||||
\ set tabstop=2 |
|
|
||||||
\ set softtabstop=2 |
|
|
||||||
\ set shiftwidth=2
|
|
||||||
|
|
||||||
" Display
|
" Display
|
||||||
set list
|
set list
|
||||||
@ -88,25 +72,9 @@ nmap <F5> :w<CR>:!clear;python3 %<CR>
|
|||||||
nmap <F6> :!%:p<CR>
|
nmap <F6> :!%:p<CR>
|
||||||
nmap <F7> :NERDTreeToggle<CR>
|
nmap <F7> :NERDTreeToggle<CR>
|
||||||
nmap <F8> :TagbarToggle<CR>
|
nmap <F8> :TagbarToggle<CR>
|
||||||
|
nmap <C-Up> :lprevious<CR>
|
||||||
|
nmap <C-Down> :lnext<CR>
|
||||||
|
|
||||||
" Plugin config
|
" Plugin config
|
||||||
let g:SimpylFold_docstring_preview=1
|
let g:SimpylFold_docstring_preview=1
|
||||||
let g:airline#extensions#tabline#enabled=1
|
let g:airline#extensions#tabline#enabled=1
|
||||||
|
|
||||||
if hostname == "localhost"
|
|
||||||
let g:syntastic_always_populate_loc_list = 1
|
|
||||||
let g:syntastic_auto_loc_list = 1
|
|
||||||
let g:syntastic_check_on_open = 1
|
|
||||||
let g:syntastic_check_on_wq = 0
|
|
||||||
else
|
|
||||||
let g:airline_powerline_fonts=1
|
|
||||||
|
|
||||||
" Plugin Ale
|
|
||||||
packloadall
|
|
||||||
silent! helptags ALL
|
|
||||||
let g:ale_fixers = {
|
|
||||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
|
||||||
\ 'javascript': ['eslint'],
|
|
||||||
\ 'python': ['add_blank_lines_for_python_control_statements', 'autopep8', 'isort']
|
|
||||||
\}
|
|
||||||
endif
|
|
||||||
|
Reference in New Issue
Block a user