diff options
Diffstat (limited to 'vim/.vim/config/ycm.vim')
-rw-r--r-- | vim/.vim/config/ycm.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vim/.vim/config/ycm.vim b/vim/.vim/config/ycm.vim new file mode 100644 index 0000000..ec11cbd --- /dev/null +++ b/vim/.vim/config/ycm.vim | |||
@@ -0,0 +1,20 @@ | |||
1 | let g:ycm_global_ycm_extra_conf = '/home/clarkzjw/.vim/config/ycm_extra_conf.py' | ||
2 | let g:ycm_collect_identifiers_from_tags_files = 1 | ||
3 | let g:ycm_seed_identifiers_with_syntax = 1 | ||
4 | let g:ycm_confirm_extra_conf = 0 | ||
5 | let g:ycm_min_num_of_chars_for_completion = 2 | ||
6 | let g:ycm_auto_trigger = 1 | ||
7 | let g:ycm_path_to_python_interpreter = '/usr/bin/python3' | ||
8 | let g:ycm_show_diagnostics_ui = 0 | ||
9 | let g:ycm_key_list_select_completion = ['<TAB>', '<C-n>', '<Down>'] | ||
10 | let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] | ||
11 | "let g:ycm_filetype_whitelist = { | ||
12 | " \ 'c': 1 , | ||
13 | " \ 'cpp': 1, | ||
14 | " \ 'python': 1 | ||
15 | " \} | ||
16 | nnoremap <leader>jd :YcmCompleter GoTo<CR> | ||
17 | |||
18 | let g:ycm_add_preview_to_completeopt = 0 | ||
19 | let g:ycm_autoclose_preview_window_after_completion = 1 | ||
20 | let g:ycm_autoclose_preview_window_after_insertion = 0 | ||