I use YouCompleteMe and it works great (after some setting up woes) for both C/C++ and Python code. However, it tries to complete things in text files such as ReStructured text, markdown, etc...
The error I keep getting is:
-- User defined completion (^U^N^P) Pattern not found
How can I stop it form doing so?
I did try this:
autocmd FileType c,cpp,python let g:ycm_global_ycm_extra_conf = "~/.ycm_extra_conf.py"
autocmd FileType c,cpp,python let g:ycm_collect_identifiers_from_tags_files = 1
autocmd FileType c,cpp,python let g:ycm_complete_in_comments = 0
autocmd FileType c,cpp,python let g:ycm_complete_in_strings = 0
autocmd FileType c,cpp,python let g:syntastic_enable_signs=1
autocmd FileType c,cpp,python let g:syntastic_error_symbol = '✗'
autocmd FileType c,cpp,python let g:syntastic_warning_symbol = '⚠'
autocmd FileType c,cpp,python let g:ycm_confirm_extra_conf = 0
But the error still persists. I even tried adding a g:ycm_filetype_specific_completion_to_disable
command like so:
let g:ycm_filetype_specific_completion_to_disable = {
\ 'rst': 1
\}
But the error still persists.