Skip to content

Commit

Permalink
Fix #81 by removing use of _update_package_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
wbthomason committed Nov 2, 2020
1 parent 2aba863 commit b3a1bb3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lua/packer/compile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ _packer_load = function(names, cause)
for _, name in ipairs(names) do
if not plugins[name].loaded then
vim.cmd('packadd ' .. name)
vim._update_package_paths()
if plugins[name].config then
for _i, config_line in ipairs(plugins[name].config) do
loadstring(config_line)()
Expand Down Expand Up @@ -442,7 +441,6 @@ local function make_loaders(_, plugins)
table.insert(result, '-- Load plugins in order defined by `after`')
vim.list_extend(result, sequence_lines)

table.insert(result, 'vim._update_package_paths()')
table.insert(result, 'END\n')

-- Then the Vim loader function
Expand Down
2 changes: 0 additions & 2 deletions lua/packer/plugin_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ plugin_utils.load_plugin = function(plugin)
end
end
end

vim._update_package_paths()
end

plugin_utils.post_update_hook = function(plugin, disp)
Expand Down

0 comments on commit b3a1bb3

Please sign in to comment.