aboutsummaryrefslogtreecommitdiff
path: root/.vim/after
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-08 00:42:37 +0800
committerGuangxiong Lin <[email protected]>2022-04-08 00:42:37 +0800
commit40e266a131d8bfc9f2f48c5e40846436a9c9e64f (patch)
tree7cccdb62d99552e028ed8daa66fe463469e441a8 /.vim/after
parentcb8f83dd1106515a76eeb4d7d87fabbbb98f67ca (diff)
downloaddotfiles-40e266a131d8bfc9f2f48c5e40846436a9c9e64f.tar.gz
dotfiles-40e266a131d8bfc9f2f48c5e40846436a9c9e64f.tar.bz2
dotfiles-40e266a131d8bfc9f2f48c5e40846436a9c9e64f.zip
Use tagstack for ycm (vim)
Diffstat (limited to '.vim/after')
-rw-r--r--.vim/after/plugin/youcompleteme.vim8
1 files changed, 4 insertions, 4 deletions
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<CR>
-nnoremap gy :YcmCompleter GoToType<CR>
-nnoremap gr :YcmCompleter GoToReferences<CR>
-nnoremap gi :YcmCompleter GoToImplementation<CR>
+nnoremap gd :call PushTagStackOnCommand('YcmCompleter GoTo')<CR>
+nnoremap gy :call PushTagStackOnCommand('YcmCompleter GoToType')<CR>
+nnoremap gr :call PushTagStackOnCommand('YcmCompleter GoToReferences')<CR>
+nnoremap gi :call PushTagStackOnCommand('YcmCompleter GoToImplementation')<CR>
nnoremap <leader>rn :YcmCompleter RefactorRename<space>
nmap <leader>fs <plug>(YCMFindSymbolInDocument)
nmap <leader>fS <plug>(YCMFindSymbolInWorkspace)