aboutsummaryrefslogtreecommitdiff
path: root/.vim/plugin/youcompleteme.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/plugin/youcompleteme.vim')
-rw-r--r--.vim/plugin/youcompleteme.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/.vim/plugin/youcompleteme.vim b/.vim/plugin/youcompleteme.vim
index f54613f..4a1e7cd 100644
--- a/.vim/plugin/youcompleteme.vim
+++ b/.vim/plugin/youcompleteme.vim
@@ -22,6 +22,11 @@ let g:ycm_filetype_blacklist = {
\ 'org': 1
\ }
+command YcmCompleterGoTo :YcmCompleter GoTo
+command YcmCompleterGoToType :YcmCompleter GoToType
+command YcmCompleterGoToReferences :YcmCompleter GoToReferences
+command YcmCompleterGoToImplementation :YcmCompleter GoToImplementation
+
nnoremap gd :YcmCompleter GoTo<CR>
nnoremap gr :YcmCompleter GoToReferences<CR>
nnoremap gi :YcmCompleter GoToImplementation<CR>
@@ -31,3 +36,4 @@ nmap gS <plug>(YCMFindSymbolInWorkspace)
nmap K <plug>(YCMHover)
autocmd! BufWritePre *.rs,*.go call execute('YcmCompleter Format')
+