diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-01-03 14:09:55 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-01-03 14:09:55 +0100 |
commit | 09f31c433a136450b9faa33b08fc3281bdea5acc (patch) | |
tree | 73a1db640af5c34c55bed51916ea8cf821e7dad2 /autoload/polyglot | |
parent | 05b8bbc938bdeac4a5ee2d3ae5cf7a7f05e822d3 (diff) | |
download | vim-polyglot-09f31c433a136450b9faa33b08fc3281bdea5acc.tar.gz vim-polyglot-09f31c433a136450b9faa33b08fc3281bdea5acc.zip |
Revert stylus provider
Diffstat (limited to 'autoload/polyglot')
-rw-r--r-- | autoload/polyglot/init.vim | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim index 9d01b346..8af31ec2 100644 --- a/autoload/polyglot/init.vim +++ b/autoload/polyglot/init.vim @@ -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) + 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 + endif endif - 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 - endif + return has_key(g:polyglot_is_disabled, a:name) endfunc let g:polyglot_is_disabled = {} |