mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(luasnip): correctly remove duplicate snippets
This commit is contained in:
parent
d0c366e4d8
commit
ff9ce6bc3d
1 changed files with 12 additions and 1 deletions
|
|
@ -68,7 +68,6 @@ return {
|
|||
"saghen/blink.cmp",
|
||||
optional = true,
|
||||
opts = {
|
||||
sources = { default = { "luasnip" } },
|
||||
snippets = {
|
||||
expand = function(snippet)
|
||||
require("luasnip").lsp_expand(snippet)
|
||||
|
|
@ -85,4 +84,16 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- 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
Reference in a new issue