feat: default to vim.snippet for snippet expansion if available (#1820)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user