Skip to content

Commit

Permalink
Use vim.notify rather than print in load()
Browse files Browse the repository at this point in the history
  • Loading branch information
wbthomason committed Oct 19, 2021
1 parent ee4c5f2 commit 797f15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/packer/load.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ packer_load = function(names, cause, plugins, force)
local plugin = plugins[names[i]]
if not plugin then
local err_message = 'Error: attempted to load ' .. names[i] .. ' which is not present in plugins table!'
print(err_message)
vim.notify(err_message, vim.log.levels.ERROR, { title = 'packer.nvim' })
error(err_message)
end

Expand Down

0 comments on commit 797f15a

Please sign in to comment.