mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-16 07:23:48 -05:00
Improve guard to support concatenated files
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||
let s:plugin_name = expand('<sfile>:t:r')
|
||||
let s:vital_base_dir = expand('<sfile>:h')
|
||||
let s:project_root = expand('<sfile>:h:h:h')
|
||||
@@ -330,3 +327,4 @@ else
|
||||
return a:list
|
||||
endfunction
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user