From: Samir Benmendil Date: Sun, 5 Jan 2020 17:31:26 +0000 (+0000) Subject: vim: try out ale/deoplete for lint and completion X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/16d05be62a402d08757b54cdb10345b86d00135d vim: try out ale/deoplete for lint and completion --- diff --git a/vim/vimrc b/vim/vimrc index 5b6fa65..7c12179 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -34,7 +34,7 @@ Plug 'ram-z/vim-clang-format', { 'branch': 'fix-undo' } " fix some issue with vim-clang-format not finding .clang-format let g:clang_format#detect_style_file = 1 Plug 'vimwiki/vimwiki', { 'branch': 'dev' } -Plug 'scrooloose/syntastic' +" Plug 'scrooloose/syntastic' Plug 'sgeb/vim-diff-fold' Plug 'shougo/unite.vim' Plug 'shougo/vimproc.vim', {'do': 'make'} @@ -49,7 +49,7 @@ Plug 'tpope/vim-repeat' Plug 'tpope/vim-surround' "investigate vim-sandwich Plug 'tpope/vim-unimpaired' Plug 'tweekmonster/spellrotate.vim' -Plug 'valloric/youcompleteme', { 'do': './install.py --clang-completer' } +" Plug 'valloric/youcompleteme', { 'do': './install.py --clang-completer' } Plug 'vim-scripts/mediawiki.vim' Plug 'vim-scripts/replacewithregister' Plug 'vim-scripts/yankring.vim' @@ -70,9 +70,27 @@ Plug 'kana/vim-operator-user' " staging " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp - +Plug 'dense-analysis/ale' " {{{2 +let g:ale_c_build_dir_names = [ 'build-Linux-x86_64' ] +let g:ale_echo_msg_format = '[%linter%] %code: %%s' +let g:ale_c_parse_compile_commands = 1 +let g:ale_cpp_parse_compile_commands = 1 +let g:ale_cpp_gcc_options = '' +let g:ale_cpp_clang_options = '' + +Plug 'shougo/deoplete.nvim' " {{{2 +Plug 'roxma/nvim-yarp' +Plug 'roxma/vim-hug-neovim-rpc' +let g:deoplete#enable_at_startup = 1 + +"}}}2 call plug#end() +call deoplete#custom#option('sources', { + \ '_': ['ale'], + \}) +call deoplete#custom#source('ale', 'matchers', ['matchers_full_fuzzy']) + filetype plugin indent on " colorscheme {{{1