Skip to content

Commit e85a87e

Browse files
tom-kucatpope
authored andcommitted
Change ri format to rdoc in balloon expression
`ri` no longer supports format `simple`. The only format which displays the tooltip correctly is `rdoc`.
1 parent 9ca7280 commit e85a87e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/ruby.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function! RubyBalloonexpr()
220220
if str !~ '^\w'
221221
return ''
222222
endif
223-
silent! let res = substitute(system("ri -f simple -T \"".str.'"'),'\n$','','')
223+
silent! let res = substitute(system("ri -f rdoc -T \"".str.'"'),'\n$','','')
224224
if res =~ '^Nothing known about' || res =~ '^Bad argument:' || res =~ '^More than one method'
225225
return ''
226226
endif

0 commit comments

Comments
 (0)