mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
feat(snippet): add friendly-snippets to native extra (#2944)
This commit is contained in:
parent
6a2545025e
commit
12a48b8ce1
1 changed files with 9 additions and 4 deletions
|
@ -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>",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue