From d0afd26d1776c2b9486781e37baa45d4dd331a17 Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Wed, 20 Nov 2024 21:37:01 -0500 Subject: [PATCH] docs: define luasnip expand snippet args explicitly --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a1ce118f..ac5211df 100644 --- a/README.md +++ b/README.md @@ -249,7 +249,7 @@ MiniDeps.add({ accept = { create_undo_point = true, -- Function used to expand snippets, for luasnip users, you may use:: - -- function(...) require('luasnip').lsp_expand(...) end + -- function(snippet) require('luasnip').lsp_expand(snippet) end -- See the "Luasnip" section for info on setting up the luasnip source expand_snippet = vim.snippet.expand, @@ -618,7 +618,7 @@ There's currently no `blink.cmp` native source for [luasnip](https://github.com/ { 'saghen/blink.compat', opts = { impersonate_nvim_cmp = true } } }, opts = { accept = { - expand_snippet = function(...) require('luasnip').lsp_expand(...) end, + expand_snippet = function(snippet) require('luasnip').lsp_expand(snippet) end, }, sources = { completion = {