summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_core/stringbuffer.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-12-25 12:53:49 +0200
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-12-25 12:57:59 +0200
commit0353d33b00977fff4f8804d4d94c3a32ebba7807 (patch)
treeb36a5a660df2ae3608e576dc5d6ffce1ccc3e912 /runtime/lua/vim/_core/stringbuffer.lua
parent5a1a92cc7a3d3a338fe5f610190910e220f074f6 (diff)
feat(pack)!: change `src` of installed plugin inside `update()` in place
Problem: Changing `src` of already installed plugin currently takes effect immediately inside `vim.pack.add()` and acts as "delete and later fresh install". Although more robust, this might lead to unintentional data loss (since plugin is deleted) if the plugin was manually modified or the new source is not valid. Also this introduces unnecessary differentiation between "change `version`" and "change `src`" of already installed plugin. Solution: Require an explicit `vim.pack.update()` to change plugin's source. It is done by conditionally changing `origin` remote of the Git repo. The effect does not require update confirmation in order to have new changes fetched from the new `src` right away. If in the future there are more types of plugins supported (i.e. not only Git repos), also do extra work (like delete + install) during `vim.pack.update()`.
Diffstat (limited to 'runtime/lua/vim/_core/stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions