feat: default to vim.snippet for snippet expansion if available (#1820)

This commit is contained in:
Micah Halter
2024-03-21 14:04:54 -04:00
committed by GitHub
parent 763c720d51
commit 66f0a031d9
3 changed files with 5 additions and 1 deletions

View File

@@ -29,7 +29,9 @@ return function()
mapping = {},
snippet = {
expand = function(_)
expand = vim.snippet and function(args)
vim.snippet.expand(args.body)
end or function(_)
error('snippet engine is not configured.')
end,
},