-
Notifications
You must be signed in to change notification settings - Fork 233
Snippet, Buffer Sources Not Being Loaded #132
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
Comments
Buffer source isn't showing because you have blink.cmp/lua/blink/cmp/sources/snippets/scan.lua Lines 4 to 30 in 213fd94
|
The defaults can be found in the README or in |
Oh, that makes sense. Thanks for pointing that out. I can confirm that removing I'll try to take a look at the |
Original:
Thanks for making this plugin. Seems like a speedier alternative to the previous
nvim-cmp
andluasnip
setup I was using for awhile.Issue
This plugin worked out of the box, and I only ran into snags after trying to port my
luasnip
snippets over to the VSCode format so I can use them withblink.cmp
.But it looks like my local snippets aren't getting loaded, and when I try to adjust my configuration so that they are, I lose all the out-of-the-box functionality. I guess I'm not sure what the configuration needs to look like for this to happen for both
friendly-snippets
and custom snippets to work together.Context
I think my confusion stems from a couple things:
1.
sources.providers
configuration confusionIt looks like the default
sources.providers
configuration is completely overridden if we pass anything tosources.providers
Maybe this is intentional (or it works differently), but it seems like a difficult way for users to configure things, especially when it's not super clear to me in the docs what these defaults are.
Here's what I see when my config looks like this:
... But as soon as I configure anything in
providers.sources
, I lose all of those completions, and my custom snippets don't appear either:2. Unsure how to configure custom snippets in addition to other snippet sources, like
friendly-snippets
Even when I have a
provider
like the following, and I specify the path to where my snippets are, they aren't being displayed as options for completion. Other snippets are - but not my custom ones:Abbr
nvim/plugins/init.lua
:uname -a
:Darwin drews-m1-mbp 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
nvim --version
:nvim/snippets/lua.json
:The text was updated successfully, but these errors were encountered: