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.82k stars 266 forks source link

fix(update): Validate local symlinks on update #1015

Closed EdenEast closed 2 years ago

EdenEast commented 2 years ago

If a local plugin is installed and then the path is moved this was not checked for in the local update function. This change checks if the current dest link points to the desired src. If not then the link is re-created.

Resolves: #944

wbthomason commented 2 years ago

Noting for posterity that this might cause issues on Windows, but we'll need Windows testers to be sure...