aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_stringbuffer.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-11-13 15:49:16 +0200
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-11-16 22:19:10 +0200
commit2e533e364e2d52bcfe531d8ddd4a148d3f3bfed1 (patch)
tree9a6c03d116571a729bcc68321a93550caa271443 /runtime/lua/vim/_stringbuffer.lua
parenta39171f5327e44162aebd17f16d4cb7ffddef1df (diff)
downloadrneovim-2e533e364e2d52bcfe531d8ddd4a148d3f3bfed1.tar.gz
rneovim-2e533e364e2d52bcfe531d8ddd4a148d3f3bfed1.tar.bz2
rneovim-2e533e364e2d52bcfe531d8ddd4a148d3f3bfed1.zip
feat(pack): update `add()` to handle source change for installed plugin
Problem: Changing `src` of an existing plugin cleanly requires manual `vim.pack.del()` prior to executing `vim.pack.add()` with a new `src`. Solution: Autodetect `src` change for an existing plugin (by comparing against lockfile data). If different - properly delete immediately and treat this as new plugin installation. Alternative solution might be to update `origin` remote in the installed plugin after calling `vim.pack.update()`. Although, doable, this 1) requires more code; and 2) works only for Git plugins (which might be not the only type of plugins in the future). Automatic "delete and clean install" feels more robust.
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions