vim: use rg for search when tag fail

This commit is contained in:
Mathieu Maret 2024-05-23 14:26:15 +02:00
parent 2ba32daa2a
commit 98b813f724

View File

@ -13,8 +13,7 @@ if has("cscope")
try
execute "tag " . expand("<cword>")
catch /:E257:/
execute "normal! gd"
execute "nohlsearch"
execute "Rg " . expand("<cword>")
endtry
endfunction
nmap <silent> , :call GoToDefinition()<CR>