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
|
||||
execute "tag " . expand("<cword>")
|
||||
catch /:E257:/
|
||||
execute "normal! gd"
|
||||
execute "nohlsearch"
|
||||
execute "Rg " . expand("<cword>")
|
||||
endtry
|
||||
endfunction
|
||||
nmap <silent> , :call GoToDefinition()<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user