vim: use rg for search when tag fail
This commit is contained in:
parent
2ba32daa2a
commit
98b813f724
@ -13,8 +13,7 @@ if has("cscope")
|
|||||||
try
|
try
|
||||||
execute "tag " . expand("<cword>")
|
execute "tag " . expand("<cword>")
|
||||||
catch /:E257:/
|
catch /:E257:/
|
||||||
execute "normal! gd"
|
execute "Rg " . expand("<cword>")
|
||||||
execute "nohlsearch"
|
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
nmap <silent> , :call GoToDefinition()<CR>
|
nmap <silent> , :call GoToDefinition()<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user