From 49314a8980fa60a7d40d95e4acfde5b166a7db71 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Mon, 3 Sep 2018 12:10:38 +0100 Subject: [PATCH] Test ale lsp support using cquery --- vimrc | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/vimrc b/vimrc index 6df56d9..3b5178f 100644 --- a/vimrc +++ b/vimrc @@ -33,24 +33,6 @@ endfor " tabline.vim - sanely numbered tabs Plug 'mkitt/tabline.vim' -" YouCompleteMe -" TODO: Try out neovim completion plugins to see if they are better -if !platform#is_windows() - " YouCompleteMe with parameter completion - Plug 'oblitum/YouCompleteMe', {'do': './install.py --clang-completer'} - let g:ycm_key_list_select_completion = ['', ''] - let g:ycm_key_list_previous_completion = ['', ''] - let g:ycm_min_num_of_chars_for_completion = 1 - let g:ycm_complete_in_comments = 1 - let g:ycm_complete_in_strings = 1 - let g:ycm_collect_identifiers_from_comments_and_strings = 1 - let g:ycm_seed_identifiers_with_syntax = 1 - let g:ycm_autoclose_preview_window_after_insertion = 1 - let g:ycm_always_populate_location_list = 1 - let g:ycm_error_symbol = '▸' - let g:ycm_warning_symbol = '▸' - let g:ycm_goto_buffer_command = 'horizontal-split' -endif if has('python') " ultisnips - snippet engine Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' @@ -64,12 +46,16 @@ Plug 'vim-scripts/vimomni', {'for': ['vim']} Plug 'w0rp/ale' let g:ale_sign_error = '▸' let g:ale_sign_warning = '▸' -let g:ale_echo_msg_format = '[%linter%] %s (%code%)' -let g:ale_linters = {'c': [], 'cpp': []} +" let g:ale_echo_msg_format = '[%linter%] %s (%code%)' +let g:ale_linters = {'c': ['cquery'], 'cpp': ['cquery']} hi link ALEError SyntasticError hi link ALEWarning SyntasticWarning hi link ALEErrorSign SyntasticErrorSign hi link ALEWarningSign SyntasticWarningSign +" Enable completion with LSP +let g:ale_completion_enabled = 1 +let g:ale_completion_delay = 0 +let g:ale_set_ballons = 1 " git diff in the sign column Plug 'airblade/vim-gitgutter'