我安裝了ycm和完成工作的STL和提升,但每當我建立gtk應用程序我沒有完成建議gtk標識符。使GTK +標識符顯示槽youcompleteme sugesstions
我的ycm_extra_conf.py文件包含所有gtk頭文件以及其他文件。
我想要的是當我輸入例如:
#include<gtk/gtk.h>
int main()
{
GtkWi // here no suggestions that begin with GtkWi (it should suggest 'GtkWindow')
/* rest */
}
正如我所說的建議STL和推動工作。
這裏是我的YCM的vimrc配置:
"
" YouCompleteMe options
"
"let g:ycm_register_as_syntastic_checker = 1 "default 1
let g:Show_diagnostics_ui = 1 "default 1
let g:ycm_enable_diagnostic_signs = 0
let g:ycm_enable_diagnostic_highlighting = 1
let g:ycm_always_populate_location_list = 1 "default 0
let g:ycm_open_loclist_on_ycm_diags = 1 "default 1
let g:ycm_complete_in_strings = 1 "default 1
let g:ycm_complete_in_comments = 0 "default 0
let g:ycm_collect_identifiers_from_tags_files = 1 "default 0
let g:ycm_collect_identifiers_from_comments_and_strings = 0 "default 0
let g:ycm_cache_omnifunc = 1 "default 1
let g:ycm_use_ultisnips_completer = 1 "default 1
let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_path_to_python_interpreter = '' "default ''
let g:ycm_server_use_vim_stdout = 0 "default 0 (logging to console)
let g:ycm_server_log_level = 'info' "default info
let g:ycm_server_keep_logfiles = 0 "default 0
let g:ycm_autoclose_preview_window_after_completion = 0 "default 0
let g:ycm_autoclose_preview_window_after_insertion = 0 "default 0
"let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py' "where to search for .ycm_extra_conf.py if not found
let g:ycm_confirm_extra_conf = 1
let g:ycm_goto_buffer_command = 'same-buffer' "[ 'same-buffer', 'horizontal-split', 'vertical-split', 'new-tab' ]
let g:ycm_filetype_whitelist = { '*': 1 }
let g:ycm_key_detailed_diagnostics = '<leader>d' "default <leader>d
let g:ycm_key_invoke_completion = '<C-Space>'
let g:ycm_key_list_previous_completion = ['<S-TAB>', '<Up>']
let g:ycm_key_list_select_completion = ['<TAB>', '<Down>']
nnoremap <F11> :YcmForceCompileAndDiagnostics <CR>
「這是因爲當沒有人回答你的問題時,你沒有別的辦法,只能自己找到解決方案。」不可以。在你問任意的陌生人之前,你必須自己尋找答案。你可以簡單地設置標籤+ =/home/user/dev/tags/**/*。tags'。 – romainl
感謝您的建議,我在vimrc中分離了我的標籤,這樣我就可以簡單地評論那些在當前項目中不需要的標籤。我希望谷歌會給你隨機的陌生人的答案,但它不會:/ – codekiddy
我發現Arch Linux'ctags'中的回購「額外」安裝它從http://ctags.sourceforge.net/這是「旺盛的標籤「。 –