garymjr / garymjr/nvim-snippets

What does "Uses `vim.snippet` under the hood for snippet expansion" mean?

Open
#57 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Lua
Stars
259
Forks
20
PR merge metrics
No merged PRs in 30d

Description

I'm a bit confused: AFAICT, there's no Lua code in this plugin that invokes any `vim.snippet` functions.

I do see that the README instructs you to set up shortcuts that invoke `vim.snippet`:

I do understand that one way to use nvim-snippets is to use it as a `nvim-cmp` source. My understanding is that in that configuration, it's `nvim-cmp` that will invoke `vim.snippet.expand`, *not* nvim-snippits.

IIUC, this plugin is providing snippets in a Lua table format that is compatible with the `vim.snippet.expand` api. Am I understanding that correctly?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the README setup section linked in the issue and compare its shortcut instructions with the described nvim-cmp configuration. Clarify whether the plugin invokes vim.snippet directly or provides snippet data for another component to expand. Done means the README wording answers that distinction for newcomers.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, vim
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.