diff options
Diffstat (limited to '.vim')
-rw-r--r-- | .vim/after/plugin/youcompleteme.vim (renamed from .vim/plugin/youcompleteme.vim) | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/.vim/plugin/youcompleteme.vim b/.vim/after/plugin/youcompleteme.vim index 76b2ffa..e673a65 100644 --- a/.vim/plugin/youcompleteme.vim +++ b/.vim/after/plugin/youcompleteme.vim @@ -1,7 +1,9 @@ let g:ycm_server_log_level = 'info' -let g:ycm_add_preview_to_completeopt = 0 +let g:ycm_add_preview_to_completeopt = 'popup' let g:ycm_collect_identifiers_from_comments_and_strings = 1 let g:ycm_complete_in_strings = 1 +let g:ycm_auto_hover = 0 +let g:ycm_auto_trigger = 1 let g:ycm_show_diagnostics_ui = 0 let g:ycm_error_symbol = 'E>' @@ -29,19 +31,11 @@ let g:ycm_filetype_blacklist = { \ 'vimwiki': 1, \ } -command YcmCompleterGoTo :YcmCompleter GoTo -command YcmCompleterGoToType :YcmCompleter GoToType -command YcmCompleterGoToReferences :YcmCompleter GoToReferences -command YcmCompleterGoToImplementation :YcmCompleter GoToImplementation -command YcmCompleterRefactorRename :YcmCompleter RefactorRename - nnoremap gd :YcmCompleter GoTo<CR> nnoremap gr :YcmCompleter GoToReferences<CR> nnoremap gi :YcmCompleter GoToImplementation<CR> -nnoremap gt :YcmCompleter GoToType<CR> nmap <leader>fs <plug>(YCMFindSymbolInDocument) nmap <leader>fS <plug>(YCMFindSymbolInWorkspace) nmap K <plug>(YCMHover) autocmd BufWritePre *.rs,*.go call execute('YcmCompleter Format') - |