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

This commit is contained in:
Phúc H. Lê Khắc authored and GitHub committed 2024-05-15 12:11:29 +02:00
1 parent 6a2545025e
commit 12a48b8ce1
1 file changed
+9 -4
@@ -11,13 +11,18 @@ return {
}, },
{ {
"nvim-cmp", "nvim-cmp",
opts = { dependencies = {
snippet = { { "rafamadriz/friendly-snippets" },
{ "garymjr/nvim-snippets", opts = { friendly_snippets = true } },
},
opts = function(_, opts)
opts.snippet = {
expand = function(args) expand = function(args)
vim.snippet.expand(args.body) vim.snippet.expand(args.body)
end, end,
}, }
}, table.insert(opts.sources, { name = "snippets" })
end,
keys = { keys = {
{ {
"<Tab>", "<Tab>",