Skip to content

Commit 458d340

Browse files
committed
Add kill switch for individual virtual buffer schemes
1 parent 7d1f52b commit 458d340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function! RailsDetect(...) abort
2727
endif
2828
let fn = fnamemodify(a:0 ? a:1 : expand('%'), ':p')
2929
let ns = matchstr(fn, '^\a\a\+\ze:')
30-
if len(ns) && exists('*' . ns . '#filereadable') && exists('*' . ns . '#isdirectory')
30+
if len(ns) && exists('*' . ns . '#filereadable') && exists('*' . ns . '#isdirectory') && !get(g:, 'projectionist_ignore_' . ns)
3131
let fn = substitute(fn, '[^:\/#]*$', '', '')
3232
while fn =~# '^\a\a\+:.'
3333
if {ns}#filereadable(fn . 'config/environment.rb') && {ns}#isdirectory(fn . 'app')

0 commit comments

Comments
 (0)