当我在.gitignore中输入路径或文件名时,无法触发ycm。我该如何配置或启用它? 例如。 vim .gitginore 当我在.gitginore中输入路径时,不会触发弹出窗口。
以下是ycm的配置:
autocmd InsertLeave * if pumvisible() == 0|pclose|endif "close windows when out of insert mode
"inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>" "Key enter to select
let g:ycm_collect_identifiers_from_tags_files=1
let g:ycm_min_num_of_chars_for_completion=2
let g:ycm_seed_identifiers_with_syntax=1
let g:ycm_complete_in_comments = 1 "complete in comment
let g:ycm_complete_in_strings = 1 "complete in string
let g:ycm_collect_identifiers_from_comments_and_strings = 1 "search comment and string
let g:ycm_confirm_extra_conf = 0
let g:ycm_key_invoke_completion = '<C-x>'