Skip to content

Commit

Permalink
docs: define luasnip expand snippet args explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Nov 21, 2024
1 parent 0ac9b00 commit d0afd26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit d0afd26

Please sign in to comment.