From 66d6e385a2c2a2d2d3a7f77c10f5cd41eb520750 Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Tue, 7 Jan 2025 15:55:05 -0500 Subject: [PATCH] docs: add back note about wrapping `vim.snippet` calls --- lua/blink/cmp/config/snippets.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/blink/cmp/config/snippets.lua b/lua/blink/cmp/config/snippets.lua index f2e93698..cd804e98 100644 --- a/lua/blink/cmp/config/snippets.lua +++ b/lua/blink/cmp/config/snippets.lua @@ -17,8 +17,8 @@ local snippets = { --- @type blink.cmp.SnippetsConfig default = { preset = 'default', + -- NOTE: we wrap `vim.snippet` calls to reduce startup by 1-2ms expand = by_preset({ - -- NOTE: default = function(snippet) vim.snippet.expand(snippet) end, luasnip = function(snippet) require('luasnip').lsp_expand(snippet) end, mini_snippets = function(snippet)