Skip to content

snippets.active is expected to return a value. #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
soifou opened this issue Nov 28, 2024 · 0 comments
Closed
2 tasks done

snippets.active is expected to return a value. #399

soifou opened this issue Nov 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@soifou
Copy link
Collaborator

soifou commented Nov 28, 2024

Make sure you have done the following

  • I have updated to the latest version of blink.cmp
  • I have read the README

Bug Description

cmp.snippet_forward() and cmp.snippet_backward() does not work anymore because snippets.active returns always nil.

Solution: add the missing return statement to function active.

Relevant configuration

snippets = {
    active = function(filter) return vim.snippet.active(filter) end,
},

neovim version

v0.11.0-dev+g203e7a43d1

blink.cmp version: branch, tag, or commit

main

@soifou soifou added the bug Something isn't working label Nov 28, 2024
@Saghen Saghen closed this as completed in 59add2d Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant