Revert stylus provider

This commit is contained in:
Adam Stankiewicz
2021-01-03 14:09:55 +01:00
parent 05b8bbc938
commit 09f31c433a
16 changed files with 548 additions and 1557 deletions

View File

@@ -21,19 +21,20 @@ func! polyglot#init#init()
endfunc
func! polyglot#init#is_disabled(caller, name, path)
if g:polyglot_initialized
return has_key(g:polyglot_is_disabled, a:name)
endif
if a:path[0:7] == "autoload"
let g:polyglot_initialized = 1
if !g:polyglot_initialized
if a:path[0:7] == "autoload"
let g:polyglot_initialized = 1
for p in globpath(&rtp, a:path, 0, 1)
if p != a:caller
exe "source " . p
return 1
endif
endfor
for p in globpath(&rtp, a:path, 0, 1)
if p != a:caller
exe "source " . p
return 1
endif
endfor
endif
endif
return has_key(g:polyglot_is_disabled, a:name)
endfunc
let g:polyglot_is_disabled = {}