Skip to content

Commit dc6f745

Browse files
chore(build): auto-generate docs
1 parent a7df213 commit dc6f745

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/extras/coding/blink.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ opts = {
7979
-- with blink.compat
8080
compat = {},
8181
default = { "lsp", "path", "snippets", "buffer" },
82-
cmdline = {},
8382
},
8483

8584
keymap = {
@@ -162,7 +161,6 @@ opts = {
162161
-- with blink.compat
163162
compat = {},
164163
default = { "lsp", "path", "snippets", "buffer" },
165-
cmdline = {},
166164
},
167165

168166
keymap = {
@@ -172,6 +170,15 @@ opts = {
172170
},
173171
---@param opts blink.cmp.Config | { sources: { compat: string[] } }
174172
config = function(_, opts)
173+
-- HACK: remove when next `blink.cmp` stable release is available
174+
-- and just do `opts.cmdline.sources = {}` directly in `opts`
175+
-- Should be greater than current 0.11.0
176+
if not vim.g.lazyvim_blink_main then
177+
opts.sources["cmdline"] = {}
178+
else
179+
opts.cmdline = opts.cmdline or {}
180+
opts.cmdline.sources = {}
181+
end
175182
-- setup compat sources
176183
local enabled = opts.sources.default
177184
for _, source in ipairs(opts.sources.compat or {}) do

0 commit comments

Comments
 (0)