Skip to content
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

Regression: Snippet reload function is broken #428

Closed
2 tasks done
chrisgrieser opened this issue Dec 3, 2024 · 2 comments
Closed
2 tasks done

Regression: Snippet reload function is broken #428

chrisgrieser opened this issue Dec 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@chrisgrieser
Copy link
Contributor

chrisgrieser commented Dec 3, 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

The latest update seems to have broken the previously working snippet reload function require('blink.cmp').sources.reload() (a regression of the function breaking in #28)

It now throws the error attempt to index field 'sources' (a nil value), I assume the function has moved somewhere else now.

Relevant configuration

No response

neovim version

NVIM v0.10.2

blink.cmp version: branch, tag, or commit

0.7.1

@chrisgrieser chrisgrieser added the bug Something isn't working label Dec 3, 2024
@Saghen
Copy link
Owner

Saghen commented Dec 3, 2024

You'll want to use require('blink.cmp.sources.lib').reload() for now. I'll expose it at require('blink.cmp').reload() in the next release

@soifou
Copy link
Contributor

soifou commented Dec 3, 2024

As a side note, it might also be interesting to allow reloading only a specific provider, eg. require('blink.cmp').reload('snippets').

@Saghen Saghen closed this as completed in f4e53f2 Dec 3, 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

3 participants