Skip to content

Commit

Permalink
feat(snippet): add friendly-snippets to native extra (#2944)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhphuc committed May 15, 2024
1 parent 6a25450 commit 12a48b8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lua/lazyvim/plugins/extras/coding/native_snippets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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>",
Expand Down

0 comments on commit 12a48b8

Please sign in to comment.