#Snippets not showing up in Zed

1 messages · Page 1 of 1 (latest)

grand bramble
#

Hi! So I ran into an issue a few weeks ago while I was using neovim and I decided to try out Zed just to see how the experience fared up. While it was fine, I noticed that for some reason, no snippets show up under the autocompletion at all, compared to all of the friendly snippets and useful commands I usually get when coding on nvim. I've attached two screenshots that explain this issue better I think.

While I've got no reason to stop using nvim since the issue I had originally was fixed, I was wondering, is this something on my end or is it an issue with the LSP/Zed extension or Zed compat?

ancient ginkgo
#

Snippets aren't provided by the language server; they have to be implemented individually for each extension. Probably the Zed extension never got snippets

grand bramble
#

Oh, I'm using LazyVim so I assume the snippets are part of the LazyVim extra then?

ancient ginkgo
#

Sorry, I'm not really familiar with how (neo)vim works. But I do know that snippets in VSCode are implemented separately from the language server

grand bramble
#

Turns out you're right, these snippets come from a separate plugin that comes with LazyVim, friendly-snippets apparently

#

These do seem to be the exact same snippets that come bundled with the VSCode extension though

#

Would it be okay if I made a commit adding these same snippets to the Zed extension as well?

#

If I can figure out how to add them at least

ancient ginkgo
#

I imagine a PR like that would probably be accepted

#

Could be worth making an issue first though, just to be sure