diff options
| author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2025-08-09 15:33:33 +0300 |
|---|---|---|
| committer | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2025-08-09 17:36:15 +0300 |
| commit | b337c6e0fc0a5c0c2e8125babded24ffcd544796 (patch) | |
| tree | 29558c17cc016816e0276057059c0c5b9dd34537 /runtime/lua/vim/provider/python.lua | |
| parent | e3913c0fc22f76b116de8f0c6d7a40395755f1d2 (diff) | |
fix(pack): update `add()` to have default `load=false` during startup
Problem: the `load=true` in `vim.pack.add()` means that `:packadd` is
executed even during startup. This leads to force source of 'plugin/',
which breaks the intended loading order (`:h load-plugins`) and
results into sourcing them twice. This also makes it ignore
`--noplugin` argument.
Using `:packadd!` during startup is more appropriate, while `:packadd`
afterwards is still more favorable to actually force 'plugin/' source
(as there is no pre-defined mechanism that will load them later).
Solution: have `load=false` default during startup, `true` - afterwards.
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions
