From 40e266a131d8bfc9f2f48c5e40846436a9c9e64f Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 8 Apr 2022 00:42:37 +0800 Subject: Use tagstack for ycm (vim) --- .vim/after/plugin/youcompleteme.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.vim/after') diff --git a/.vim/after/plugin/youcompleteme.vim b/.vim/after/plugin/youcompleteme.vim index b4e30a8..1c30617 100644 --- a/.vim/after/plugin/youcompleteme.vim +++ b/.vim/after/plugin/youcompleteme.vim @@ -33,10 +33,10 @@ let g:ycm_filetype_blacklist = { \ 'vimwiki': 1, \ } -nnoremap gd :YcmCompleter GoTo -nnoremap gy :YcmCompleter GoToType -nnoremap gr :YcmCompleter GoToReferences -nnoremap gi :YcmCompleter GoToImplementation +nnoremap gd :call PushTagStackOnCommand('YcmCompleter GoTo') +nnoremap gy :call PushTagStackOnCommand('YcmCompleter GoToType') +nnoremap gr :call PushTagStackOnCommand('YcmCompleter GoToReferences') +nnoremap gi :call PushTagStackOnCommand('YcmCompleter GoToImplementation') nnoremap rn :YcmCompleter RefactorRename nmap fs (YCMFindSymbolInDocument) nmap fS (YCMFindSymbolInWorkspace) -- cgit v1.2.3