Skip to content

Commit b914aed

Browse files
committed
Include autoload in 'include'
1 parent 91f27a8 commit b914aed

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
@@ -43,7 +43,7 @@ endif
4343

4444
setlocal formatoptions-=t formatoptions+=croql
4545

46-
setlocal include=^\\s*\\<\\(load\\\|\w*require\\)\\>
46+
setlocal include=^\\s*\\<\\(load\\>\\\|require\\>\\\|autoload\\s*:\\=[\"']\\=\\h\\w*[\"']\\=,\\)
4747
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.rb','')
4848
setlocal suffixesadd=.rb
4949

0 commit comments

Comments
 (0)