feat(snippet): add friendly-snippets to native extra (#2944)

This commit is contained in:
Phúc H. Lê Khắc 2024-05-15 14:11:29 +04:00 committed by GitHub
parent 6a2545025e
commit 12a48b8ce1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,13 +11,18 @@ return {
},
{
"nvim-cmp",
opts = {
snippet = {
dependencies = {
{ "rafamadriz/friendly-snippets" },
{ "garymjr/nvim-snippets", opts = { friendly_snippets = true } },
},
opts = function(_, opts)
opts.snippet = {
expand = function(args)
vim.snippet.expand(args.body)
end,
},
},
}
table.insert(opts.sources, { name = "snippets" })
end,
keys = {
{
"<Tab>",