mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat: an extra for mini.snippets. Prepare for native blink integration
This commit is contained in:
parent
75de3f0bd4
commit
852beed925
1 changed files with 11 additions and 6 deletions
|
|
@ -138,12 +138,17 @@ return {
|
||||||
snippets_in_cmp = false
|
snippets_in_cmp = false
|
||||||
snippet_select = snippet_select_for_blink
|
snippet_select = snippet_select_for_blink
|
||||||
|
|
||||||
opts.sources.default = vim.tbl_filter(function(source) -- rm builtin snippets
|
if snippets_in_cmp then
|
||||||
if source == "snippets" then
|
opts.sources.default = { "mini_snippets" }
|
||||||
return false
|
else
|
||||||
end
|
-- No snippets in completion, remove blink's builtin snippets
|
||||||
return true
|
opts.sources.default = vim.tbl_filter(function(source)
|
||||||
end, opts.sources.default)
|
if source == "snippets" then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
return true
|
||||||
|
end, opts.sources.default)
|
||||||
|
end
|
||||||
|
|
||||||
-- Blink defines the <s-tab> key.
|
-- Blink defines the <s-tab> key.
|
||||||
opts.snippets = {
|
opts.snippets = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue