use YcmGoto

This commit is contained in:
Stefan Liebl 2022-10-26 13:01:59 +02:00
parent efd75a9721
commit 03706f8fa2
2 changed files with 3 additions and 5 deletions

View File

@ -111,7 +111,3 @@ function! ReformatCSpaces()
call AddSpaceAfter('if')
endfunction
" use tt for YCM
nnoremap <buffer> tt :YcmCompleter GoTo<CR>
"map <buffer> <C-T> <C-O>

View File

@ -192,7 +192,7 @@ set backspace+=start
nnoremap gm :let @/ = "<C-R><C-W>"<CR>:set hlsearch<CR>
vnoremap gm y:let @/ = "<C-R>0"<CR>:set hlsearch<CR>
" go to tag under cursor
nnoremap tt g<C-]>
"nnoremap tt g<C-]>
" find next error
nnoremap <C-N> :cn<CR>
" go back to previous edited file
@ -294,6 +294,8 @@ let g:ycm_clangd_binary_path = exepath('clangd-13')
let g:ycm_clangd_uses_ycmd_caching = 0 " Let clangd fully control code completion
"let g:ycm_clangd_args = ['--all-scopes-completion', '--clang-tidy', '--header-insertion=iwyu', '--suggest-missing-includes', '--enable-config']
let g:ycm_clangd_args = ['--all-scopes-completion', '--header-insertion=iwyu', '--suggest-missing-includes', '--enable-config']
" use tt for YCM GoTo
nnoremap tt :YcmCompleter GoTo<CR>
if exists('g:debug')