We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce16de5 commit 8f3c541Copy full SHA for 8f3c541
1 file changed
lua/cmp/config/default.lua
@@ -29,7 +29,7 @@ return function()
29
mapping = {},
30
31
snippet = {
32
- expand = vim.snippet and function(args)
+ expand = vim.fn.has('nvim-0.10') == 1 and function(args)
33
vim.snippet.expand(args.body)
34
end or function(_)
35
error('snippet engine is not configured.')
0 commit comments