wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.85k stars 265 forks source link

fix(compile): do not call real commands in lazyloading dummy commands… #1188

Closed Bekaboo closed 1 year ago

Bekaboo commented 1 year ago

… (#1179, #1166)

Current version of packer will make unexpected call to lazy-loaded commands when packer tries to get completion of that command.

This commit fixes the issue by passing empty table as cause to function packer_load to avoid calling the actual command in this case.

Bekaboo commented 1 year ago

Bug demo:

https://user-images.githubusercontent.com/76579810/211249641-269cc714-74e1-48b4-a528-64e41451e7b2.mp4

After fixing:

https://user-images.githubusercontent.com/76579810/211249681-e838b061-411a-44c8-a5bb-20759c99a344.mp4