mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-30 20:44:35 +02:00
feat(cmp): better error handling and automatic fixing of snippets that fail to parse with native Neovim snippets
This commit is contained in:
parent
7d72436193
commit
97862f4259
2 changed files with 31 additions and 0 deletions
|
@ -93,6 +93,11 @@ return {
|
|||
{ "garymjr/nvim-snippets", opts = { friendly_snippets = true } },
|
||||
},
|
||||
opts = function(_, opts)
|
||||
opts.snippet = {
|
||||
expand = function(item)
|
||||
return LazyVim.cmp.expand(item.body)
|
||||
end,
|
||||
}
|
||||
table.insert(opts.sources, { name = "snippets" })
|
||||
end,
|
||||
keys = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue