use YcmGoto
This commit is contained in:
parent
efd75a9721
commit
03706f8fa2
@ -111,7 +111,3 @@ function! ReformatCSpaces()
|
|||||||
call AddSpaceAfter('if')
|
call AddSpaceAfter('if')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" use tt for YCM
|
|
||||||
nnoremap <buffer> tt :YcmCompleter GoTo<CR>
|
|
||||||
"map <buffer> <C-T> <C-O>
|
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ set backspace+=start
|
|||||||
nnoremap gm :let @/ = "<C-R><C-W>"<CR>:set hlsearch<CR>
|
nnoremap gm :let @/ = "<C-R><C-W>"<CR>:set hlsearch<CR>
|
||||||
vnoremap gm y:let @/ = "<C-R>0"<CR>:set hlsearch<CR>
|
vnoremap gm y:let @/ = "<C-R>0"<CR>:set hlsearch<CR>
|
||||||
" go to tag under cursor
|
" go to tag under cursor
|
||||||
nnoremap tt g<C-]>
|
"nnoremap tt g<C-]>
|
||||||
" find next error
|
" find next error
|
||||||
nnoremap <C-N> :cn<CR>
|
nnoremap <C-N> :cn<CR>
|
||||||
" go back to previous edited file
|
" 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_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', '--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']
|
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')
|
if exists('g:debug')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user