]> git.rmz.io Git - dotfiles.git/commitdiff
vim: try out ale/deoplete for lint and completion
authorSamir Benmendil <me@rmz.io>
Sun, 5 Jan 2020 17:31:26 +0000 (17:31 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 5 Jan 2020 17:31:26 +0000 (17:31 +0000)
vim/vimrc

index 5b6fa65824b9eb81695740890ce811fec65eee5d..7c12179ff0072dc3a2532196e1d0571071173d62 100644 (file)
--- 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