Skip to content

Commit 2f8adae

Browse files
committed
Copy buffer opt-out from Projectionist
The use of "projectionist" as the second argument here is aspirational.
1 parent ac63f9a commit 2f8adae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugin/rails.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ function! RailsDetect(...) abort
4141
let path = getcwd() . (exists('+shellslash') && !&shellslash ? '\' : '/') . path
4242
endif
4343
let path = substitute(path, '[' . s:slash . '/]$', '', '')
44+
try
45+
if exists('*ExcludeBufferFromDiscovery') && ExcludeBufferFromDiscovery(file, 'projectionist')
46+
return
47+
endif
48+
catch
49+
endtry
4450

4551
if exists('*ProjectionistHas')
4652
let previous = ''

0 commit comments

Comments
 (0)