Skip to content

Commit

Permalink
docs: add back note about wrapping vim.snippet calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Jan 7, 2025
1 parent 85d2a6a commit 66d6e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/config/snippets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 66d6e38

Please sign in to comment.