Test ale lsp support using cquery
This commit is contained in:
parent
6fb2f7a01c
commit
49314a8980
26
vimrc
26
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 = ['<C-n>', '<Down>']
|
||||
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
|
||||
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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user