languageclient => ale

This commit is contained in:
Alex Yatskov 2020-04-26 20:57:47 -07:00
parent 035477810c
commit 3fa679753c
4 changed files with 32 additions and 26 deletions

6
.gitmodules vendored
View File

@ -115,6 +115,6 @@
[submodule ".vim/bundle/ListToggle"] [submodule ".vim/bundle/ListToggle"]
path = .vim/bundle/ListToggle path = .vim/bundle/ListToggle
url = https://github.com/Valloric/ListToggle.git url = https://github.com/Valloric/ListToggle.git
[submodule ".vim/bundle/LanguageClient-neovim"] [submodule ".vim/bundle/ale"]
path = .vim/bundle/LanguageClient-neovim path = .vim/bundle/ale
url = https://github.com/autozimu/LanguageClient-neovim.git url = https://github.com/dense-analysis/ale.git

@ -1 +0,0 @@
Subproject commit 6fd97344926463bfd7c71e4fc3a9f2dc3480f3df

1
.vim/bundle/ale Submodule

@ -0,0 +1 @@
Subproject commit 36e5337e30095afb10d02ef2ae362c8d6055e70d

View File

@ -2,39 +2,45 @@
runtime bundle/vim-pathogen/autoload/pathogen.vim runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect('bundle/{}') 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',
\ }
" deoplete.nvim " deoplete.nvim
if has('python3') if has('python3')
let g:deoplete#enable_at_startup = 1 let g:deoplete#enable_at_startup = 1
if len($PYTHON3_HOST_PROG) > 0 if len($PYTHON3_HOST_PROG) > 0
let g:python3_host_prog=$PYTHON3_HOST_PROG let g:python3_host_prog=$PYTHON3_HOST_PROG
endif endif
call deoplete#custom#option('sources', {'_': ['ale']})
endif endif
" LanguageClient-neovim
let g:LanguageClient_serverCommands = {
\ 'c': ['ccls'],
\ 'cpp': ['ccls'],
\ 'go': ['gopls'],
\ 'python': ['pyls'],
\ }
" fzf " fzf
let $FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -f -g "" 2> /dev/null' let $FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -f -g "" 2> /dev/null'
let g:fzf_colors = { let g:fzf_colors = {
\ 'bg': ['bg', 'Normal'], \ 'bg': ['bg', 'Normal'],
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
\ 'border': ['fg', 'Ignore'], \ 'border': ['fg', 'Ignore'],
\ 'fg': ['fg', 'Normal'], \ 'fg': ['fg', 'Normal'],
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
\ 'header': ['fg', 'Comment'], \ 'header': ['fg', 'Comment'],
\ 'hl': ['fg', 'Comment'], \ 'hl': ['fg', 'Comment'],
\ 'hl+': ['fg', 'Statement'], \ 'hl+': ['fg', 'Statement'],
\ 'info': ['fg', 'PreProc'], \ 'info': ['fg', 'PreProc'],
\ 'marker': ['fg', 'Keyword'], \ 'marker': ['fg', 'Keyword'],
\ 'pointer': ['fg', 'Exception'], \ 'pointer': ['fg', 'Exception'],
\ 'prompt': ['fg', 'Conditional'], \ 'prompt': ['fg', 'Conditional'],
\ 'spinner': ['fg', 'Label'], \ 'spinner': ['fg', 'Label'],
\ } \ }
" vim-airline " vim-airline
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1