We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
When loading a snippet that is incorrectly formatted, the error catching is bypassed ass it is checking the wrong value.
To reproduce:
Add this to your luasnip config:
require("luasnip.loaders.from_lua").load({paths = "~/snippets"})
Then add this to all.lua in that directory:
{ "Standard Starter Template": { "prefix": "sst", "body": [ "#include <stdlib.h>", "#include <stdio.h>", "", "int main(int argc, char *argv[])", "{$0", "", "\treturn EXIT_SUCCESS;", "}" ], "description": "Standard starter template for a tiny C program" } }
Open NVIM and see the error:
Error detected while processing /Users/dwain/.config/nvim/after/plugin/luasnip.lua: E5113: Error while calling lua chunk: ...ck/packer/start/LuaSnip/lua/luasnip/loaders/from_lua.lua:77: bad argument #1 to 'setfenv' (number expected, got nil)
The text was updated successfully, but these errors were encountered:
Nice catch, thank you for doing a PR immediately 👍
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When loading a snippet that is incorrectly formatted, the error catching is bypassed ass it is checking the wrong value.
To reproduce:
Add this to your luasnip config:
Then add this to all.lua in that directory:
Open NVIM and see the error:
The text was updated successfully, but these errors were encountered: