We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1f52b commit 458d340Copy full SHA for 458d340
plugin/rails.vim
@@ -27,7 +27,7 @@ function! RailsDetect(...) abort
27
endif
28
let fn = fnamemodify(a:0 ? a:1 : expand('%'), ':p')
29
let ns = matchstr(fn, '^\a\a\+\ze:')
30
- if len(ns) && exists('*' . ns . '#filereadable') && exists('*' . ns . '#isdirectory')
+ if len(ns) && exists('*' . ns . '#filereadable') && exists('*' . ns . '#isdirectory') && !get(g:, 'projectionist_ignore_' . ns)
31
let fn = substitute(fn, '[^:\/#]*$', '', '')
32
while fn =~# '^\a\a\+:.'
33
if {ns}#filereadable(fn . 'config/environment.rb') && {ns}#isdirectory(fn . 'app')
0 commit comments