mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(blink): added new luasnip preset
This commit is contained in:
parent
c1319cb7ac
commit
8d2d9a9bd9
1 changed files with 1 additions and 24 deletions
|
@ -69,31 +69,8 @@ return {
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = {
|
opts = {
|
||||||
snippets = {
|
snippets = {
|
||||||
expand = function(snippet)
|
preset = "luasnip",
|
||||||
require("luasnip").lsp_expand(snippet)
|
|
||||||
end,
|
|
||||||
active = function(filter)
|
|
||||||
if filter and filter.direction then
|
|
||||||
return require("luasnip").jumpable(filter.direction)
|
|
||||||
end
|
|
||||||
return require("luasnip").in_snippet()
|
|
||||||
end,
|
|
||||||
jump = function(direction)
|
|
||||||
require("luasnip").jump(direction)
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Luasnip sources for blink
|
|
||||||
{
|
|
||||||
"saghen/blink.cmp",
|
|
||||||
optional = true,
|
|
||||||
opts = function(_, opts)
|
|
||||||
table.insert(opts.sources.default, "luasnip")
|
|
||||||
opts.sources.default = vim.tbl_filter(function(p)
|
|
||||||
return p ~= "snippets"
|
|
||||||
end, opts.sources.default)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue