Skip to content

Commit

Permalink
Fix #92
Browse files Browse the repository at this point in the history
  • Loading branch information
wbthomason committed Nov 21, 2020
1 parent d09aa54 commit 3a4fe6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/packer/compile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ local function make_loaders(_, plugins)
end
end

if plugin.config and not plugin.opt then configs[name] = plugin.config end

if plugin.rtp then table.insert(rtps, util.join_paths(plugin.install_path, plugin.rtp)) end

if plugin.opt then
Expand Down Expand Up @@ -270,6 +268,10 @@ local function make_loaders(_, plugins)
end
end
end

if plugin.config and (not plugin.opt or loaders[name].only_setup) then
configs[name] = plugin.executable_config
end
end
end

Expand Down

0 comments on commit 3a4fe6b

Please sign in to comment.