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

This commit is contained in:
Phúc Lê Khắc 2024-04-07 08:29:59 +07:00
parent 530e94a9fa
commit 41b3931071

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>",