-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathYouCompleteMe.vim
More file actions
40 lines (34 loc) · 1.02 KB
/
Copy pathYouCompleteMe.vim
File metadata and controls
40 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
" Copyright (c) 2019-present Kaiming Guo. All rights reserved.
" Use of this source code is governed by a BSD-style license that can be
" found in the LICENSE file.
function! BuildYcmd(info) abort
if a:info.status == 'installed' || a:info.force
!./install.py --clang-completer
endif
endfunction
if exists('g:plug_installing_plugins')
Plug 'Valloric/YouCompleteMe', { 'do': function('BuildYcmd') }
finish
endif
let g:ycm_show_diagnostics_ui = 0
let g:ycm_complete_in_comments = 1
let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_collect_identifiers_from_comments_and_strings = 1
let g:ycm_semantic_triggers = {
\ 'cs,java,javascript,typescript,d,python,perl6,scala,vb,elixir,go': ['.'],
\ 'ruby,c,cpp': ['.', '::'],
\ 'gitcommit': ['#', ':']
\ }
" Overwritten so we can allow markdown completion.
let g:ycm_filetype_blacklist = {
\ 'notes': 1,
\ 'unite': 1,
\ 'tagbar': 1,
\ 'pandoc': 1,
\ 'qf': 1,
\ 'vimwiki': 1,
\ 'text': 1,
\ 'infolog': 1,
\ 'mail': 1
\ }
" vim: set sw=2 ts=2 et tw=78 :