mirror of
https://github.com/hrsh7th/nvim-cmp
synced 2024-09-16 20:54:03 +02:00
perf: don't eagerly load vim.snippet (#1896)
Evaluating `vim.snippet` loads many modules, which takes about 1ms.
This commit is contained in:
parent
ce16de5665
commit
8f3c541407
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ return function()
|
|||
mapping = {},
|
||||
|
||||
snippet = {
|
||||
expand = vim.snippet and function(args)
|
||||
expand = vim.fn.has('nvim-0.10') == 1 and function(args)
|
||||
vim.snippet.expand(args.body)
|
||||
end or function(_)
|
||||
error('snippet engine is not configured.')
|
||||
|
|
Loading…
Reference in a new issue