Skip to content

LuaSnip problem #198

Answered by davidgranstrom
gilfuser asked this question in Q&A
Sep 17, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

There seems to have been a breaking change in the LuaSnip API: L3MON4D3/LuaSnip#81 (comment)

This works for me:

ls.add_snippets('supercollider', {
  s('sb', { t('s.boot;') }),
}, {
  key = 'supercollider'
})

And

ls.add_snippets('supercollider', require'scnvim.utils'.get_snippets())

..to use the generated snippets. Note that this file is pretty big so adding the snippets it will affect the overall startup time of nvim. If you plan to use the generated snippets you might consider loading them by using an autocmd instead.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gilfuser
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by gilfuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants