Skip to content

[audit] fix: bound blink.cmp version range to stay off v2 - #328

Draft
stanfish06 wants to merge 1 commit into
masterfrom
audit/blink-cmp-version-range
Draft

[audit] fix: bound blink.cmp version range to stay off v2#328
stanfish06 wants to merge 1 commit into
masterfrom
audit/blink-cmp-version-range

Conversation

@stanfish06

Copy link
Copy Markdown
Owner

What

plugins.lua:27 pins blink.cmp with version = vim.version.range("1.10.0"). A single-arg call to vim.version.range() produces an open range (>= 1.10.0, no ceiling) — the same mismatch between intent and behavior already flagged for fff.nvim in #261. In practice this means the pin does nothing to stop a future blink.cmp v2 install.

Where

lua/config/plugins.lua:27

Why it matters

#271 (still open) already documents that blink.cmp v2 is a complete config-structure rewrite (new source registration model, renamed keymap preset keys, changed completion trigger config) that will break this config's blink.setup({...}) call, and explicitly recommends pinning with vim.version.range(">= 1.0, < 2.0"). That recommendation was never applied — the code still uses the open, single-arg form. So today, the moment blink.cmp v2 tags a release, vim.pack would be free to pull it in and break completion on next sync.

Fix

version = vim.version.range(">= 1.10.0, < 2.0.0"),

Mechanical, backward-compatible: no change in behavior on the current 1.x line, only adds the ceiling #271 already called for. Also added a short comment explaining why the bound exists, referencing #271.

This doesn't close #271 (that issue also covers the eventual v2 migration itself) but does resolve the concrete "the pin isn't actually pinning" gap.


Generated by Claude Code

vim.version.range("1.10.0") is a single-arg open range (>= 1.10.0,
no upper bound), the same anti-pattern already flagged for fff.nvim
in #261 — so the pin doesn't actually block a future blink.cmp v2
install, despite #271 already documenting that v2 is a breaking
config-structure rewrite. Add the explicit upper bound #271
recommended but that was never applied to plugins.lua.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[deps] fff.nvim at 0.9.6 (config targets 0.9.4); blink.cmp v2 imminent with breaking config changes

2 participants