Skip to content

Commit f1f79b4

Browse files
committed
adding doc
1 parent e41e960 commit f1f79b4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

autoload/rubycomplete.vim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,7 @@ class VimRubyCompletion
256256

257257
custom_paths = VIM::evaluate("get(g:, 'rubycomplete_load_paths', [])")
258258

259-
puts custom_paths
260-
if custom_paths.is_a?(Array) && !custom_paths.empty?
261-
puts "ASD"
259+
if !custom_paths.empty?
262260
$LOAD_PATH.concat(custom_paths).uniq!
263261
end
264262

doc/ft-ruby-omni.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ Notes:
4343
let g:rubycomplete_gemfile_path = 'Gemfile.aux'
4444
< To use Bundler.require instead of parsing the Gemfile, set: >
4545
let g:rubycomplete_use_bundler = 1
46-
<
46+
< To use custom paths that should be added to $LOAD_PATH to correctly resolve
47+
requires, set: >
48+
let g:rubycomplete_load_paths = ["/path/to/code", "./lib/example"]
49+
4750
4851
vim:tw=78:sw=4:ts=8:ft=help:norl:

0 commit comments

Comments
 (0)