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,15 +4,9 @@ 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',
\ 'cacheDirectory': '/tmp/ccls',
\ 'cacheFormat': 'binary',
\ }
" deoplete.nvim
@ -26,19 +20,19 @@ endif
" fzf
let $FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -f -g "" 2> /dev/null'
let g:fzf_colors = {
\ 'bg': ['bg', 'Normal'],
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
\ 'border': ['fg', 'Ignore'],
\ 'fg': ['fg', 'Normal'],
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
\ 'header': ['fg', 'Comment'],
\ 'hl': ['fg', 'Comment'],
\ 'hl+': ['fg', 'Statement'],
\ 'info': ['fg', 'PreProc'],
\ 'marker': ['fg', 'Keyword'],
let g:fzf_colors = {
\ 'bg': ['bg', 'Normal'],
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
\ 'border': ['fg', 'Ignore'],
\ 'fg': ['fg', 'Normal'],
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
\ 'header': ['fg', 'Comment'],
\ 'hl': ['fg', 'Comment'],
\ 'hl+': ['fg', 'Statement'],
\ 'info': ['fg', 'PreProc'],
\ 'marker': ['fg', 'Keyword'],
\ 'pointer': ['fg', 'Exception'],
\ 'prompt': ['fg', 'Conditional'],
\ 'prompt': ['fg', 'Conditional'],
\ 'spinner': ['fg', 'Label'],
\ }
@ -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