Skip to content

Commit b3bcbcd

Browse files
committed
Rename loop variable used for additional plugins
The variable `plugin` is used in two places, first when iterating over `g:spacevim_plugins` and again when iterating over `g:dotspacevim_additional_plugins`. On certain versions of vim a "Variable type mismatch" occurs when attempting to iterate over `g:dotspacevim_additional_plugins`. This appears to be because `g:spacevim_plugins` contains dictionaries and `g:dotspacevim_additional_plugins` contains strings. Giving the loop variable a different name solves the problem.
1 parent ba59c34 commit b3bcbcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/spacevim.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ function! spacevim#bootstrap() abort
9797
endfor
9898
endfor
9999
if exists('g:dotspacevim_additional_plugins')
100-
for plugin in g:dotspacevim_additional_plugins
101-
Plug plugin
100+
for additional_plugin in g:dotspacevim_additional_plugins
101+
Plug additional_plugin
102102
endfor
103103
endif
104104
call plug#end()

0 commit comments

Comments
 (0)