mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-21 20:11:06 +00:00
fix(blink): added work-around back for unsupported native snippets
This commit is contained in:
parent
3ffb471c18
commit
899533a101
1 changed files with 3 additions and 0 deletions
|
|
@ -106,6 +106,9 @@ return {
|
||||||
},
|
},
|
||||||
---@param opts blink.cmp.Config | { sources: { compat: string[] } }
|
---@param opts blink.cmp.Config | { sources: { compat: string[] } }
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
if opts.snippets and opts.snippets.preset == "default" then
|
||||||
|
opts.snippets.expand = LazyVim.cmp.expand
|
||||||
|
end
|
||||||
-- setup compat sources
|
-- setup compat sources
|
||||||
local enabled = opts.sources.default
|
local enabled = opts.sources.default
|
||||||
for _, source in ipairs(opts.sources.compat or {}) do
|
for _, source in ipairs(opts.sources.compat or {}) do
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue