From 3fa679753cf49d475ba5efb2cfc19033d7715945 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 26 Apr 2020 20:57:47 -0700 Subject: [PATCH] languageclient => ale --- .gitmodules | 6 ++-- .vim/bundle/LanguageClient-neovim | 1 - .vim/bundle/ale | 1 + .vim/plugins.vim | 50 +++++++++++++++++-------------- 4 files changed, 32 insertions(+), 26 deletions(-) delete mode 160000 .vim/bundle/LanguageClient-neovim create mode 160000 .vim/bundle/ale diff --git a/.gitmodules b/.gitmodules index f69666a..2e6dec1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -115,6 +115,6 @@ [submodule ".vim/bundle/ListToggle"] path = .vim/bundle/ListToggle url = https://github.com/Valloric/ListToggle.git -[submodule ".vim/bundle/LanguageClient-neovim"] - path = .vim/bundle/LanguageClient-neovim - url = https://github.com/autozimu/LanguageClient-neovim.git +[submodule ".vim/bundle/ale"] + path = .vim/bundle/ale + url = https://github.com/dense-analysis/ale.git diff --git a/.vim/bundle/LanguageClient-neovim b/.vim/bundle/LanguageClient-neovim deleted file mode 160000 index 6fd9734..0000000 --- a/.vim/bundle/LanguageClient-neovim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6fd97344926463bfd7c71e4fc3a9f2dc3480f3df diff --git a/.vim/bundle/ale b/.vim/bundle/ale new file mode 160000 index 0000000..36e5337 --- /dev/null +++ b/.vim/bundle/ale @@ -0,0 +1 @@ +Subproject commit 36e5337e30095afb10d02ef2ae362c8d6055e70d diff --git a/.vim/plugins.vim b/.vim/plugins.vim index 4b17b81..17fce78 100644 --- a/.vim/plugins.vim +++ b/.vim/plugins.vim @@ -2,39 +2,45 @@ runtime bundle/vim-pathogen/autoload/pathogen.vim 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 if has('python3') let g:deoplete#enable_at_startup = 1 if len($PYTHON3_HOST_PROG) > 0 let g:python3_host_prog=$PYTHON3_HOST_PROG endif + call deoplete#custom#option('sources', {'_': ['ale']}) endif -" LanguageClient-neovim -let g:LanguageClient_serverCommands = { - \ 'c': ['ccls'], - \ 'cpp': ['ccls'], - \ 'go': ['gopls'], - \ 'python': ['pyls'], - \ } - " 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'], - \ 'pointer': ['fg', 'Exception'], - \ 'prompt': ['fg', 'Conditional'], - \ 'spinner': ['fg', 'Label'], - \ } + \ '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'], + \ 'spinner': ['fg', 'Label'], + \ } " vim-airline let g:airline#extensions#tabline#enabled = 1