Skip to content

Commit

Permalink
fix: duplicate snippets in luasnip when autosnippets are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 15, 2024
1 parent cfd1b7f commit 12ffc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/sources/luasnip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function source:get_completions(ctx, callback)
for _, extra_ft in ipairs(self.config.global_snippets) do
vim.list_extend(snippets, ls.get_snippets(extra_ft, { type = 'autosnippets' }))
end
vim.list_extend(snippets, ls.get_snippets(ft, { type = 'snippets' }))
vim.list_extend(snippets, ls.get_snippets(ft, { type = 'autosnippets' }))
end
snippets = vim.tbl_filter(function(snip) return not snip.hidden end, snippets)

Expand Down

0 comments on commit 12ffc10

Please sign in to comment.