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 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>