let g:ycm_server_log_level = 'info' let g:ycm_add_preview_to_completeopt = 0 let g:ycm_show_diagnostics_ui = 1 let g:ycm_collect_identifiers_from_comments_and_strings = 1 let g:ycm_complete_in_strings = 1 let g:ycm_filetype_whilelist = { \ "c": 1, \ "cpp": 1, \ "go": 1, \ "gdscript": 1, \ "lua": 1, \ "python": 1, \ "sh": 1, \ "vim": 1, \ "zsh": 1 \ } let g:ycm_filetype_blacklist = { \ 'ledger': 1, \ 'markdown': 1, \ 'org': 1 \ } command YcmCompleterGoTo :YcmCompleter GoTo command YcmCompleterGoToType :YcmCompleter GoToType command YcmCompleterGoToReferences :YcmCompleter GoToReferences command YcmCompleterGoToImplementation :YcmCompleter GoToImplementation nnoremap gd :YcmCompleter GoTo nnoremap gr :YcmCompleter GoToReferences nnoremap gi :YcmCompleter GoToImplementation nnoremap gt :YcmCompleter GoToType nmap fs (YCMFindSymbolInDocument) nmap fS (YCMFindSymbolInWorkspace) nmap K (YCMHover) autocmd! BufWritePre *.rs,*.go call execute('YcmCompleter Format')