This commit is contained in:
Alex Yatskov 2020-04-28 19:51:52 -07:00
parent 7fce5713bf
commit dc1f4e88a3
5 changed files with 20 additions and 24 deletions

1
.vim/ftplugin/c.vim Normal file
View File

@ -0,0 +1 @@
let b:ale_linters = ['ccls']

View File

@ -1 +1 @@
setlocal expandtab
let b:ale_linters = ['ccls']

View File

@ -1 +1,4 @@
setlocal noexpandtab
let b:ale_linters = ['gopls']
let b:argwrap_tail_comma = 1

1
.vim/ftplugin/python.vim Normal file
View File

@ -0,0 +1 @@
let b:ale_linters = ['pyls']

View File

@ -4,12 +4,6 @@ execute pathogen#infect('bundle/{}')
" ale
let g:ale_linters_explicit = 1
let g:ale_linters = {
\ 'c': ['ccls'],
\ 'cpp': ['ccls'],
\ 'go': ['gopls'],
\ 'python': ['pyls'],
\ }
let g:ale_cpp_ccls_init_options = {
\ 'cacheDirectory': '/tmp/ccls',
\ 'cacheFormat': 'binary',
@ -47,9 +41,6 @@ let g:airline#extensions#ale#enabled = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline_symbols_ascii = 1
" vim-argwrap
autocmd FileType go let b:argwrap_tail_comma = 1
" vim-go
let g:go_fmt_command = 'goimports'
let g:go_null_module_warning = 0