Skip to content

Commit

Permalink
FIX: added back 'ordinal'; appears to be mandatory
Browse files Browse the repository at this point in the history
Appears to be required for Telescope to display the snippets list at
all.  See the Telescope developer's documentation here:

<https://github.com/nvim-telescope/telescope.nvim/blob/master/developers.md#entry-maker>
  • Loading branch information
benfowler committed Dec 7, 2024
1 parent 24bb330 commit 9095ef1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/telescope/_extensions/luasnip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ M.luasnip_fn = function(opts)
filename = entry.context.trigger,
display = make_display,
text = string.format(" => %s | %s | %s", entry.ft, entry.context.name, entry.context.description[1] or ''),
ordinal = search_fn(entry),
preview_command = function(_, bufnr)
local snippet = get_docstring(luasnip, entry.ft, entry.context)
if opts.preview.check_mime_type then
Expand Down

0 comments on commit 9095ef1

Please sign in to comment.