Skip to content
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

Unknown error while trying to parse custom snippets #535

Closed
Tagvi opened this issue Jan 1, 2022 · 2 comments
Closed

Unknown error while trying to parse custom snippets #535

Tagvi opened this issue Jan 1, 2022 · 2 comments

Comments

@Tagvi
Copy link

Tagvi commented Jan 1, 2022

I added this to my init.vim on line 45

let g:user_emmet_settings = webapi#json#decode(join(readfile(expand('~/.snippets.json')), "\n"))

and inside the .snippets.json is

 {
 "script": "<script type='module' src='${0}'> </script>"
 }

And I assume this is enough config for it to work. Next up I get this error message:
Error detected while processing /home/tagvi/.config/nvim/init.vim: line 45
(Nothing else)

I have the web API installed.
Arch Linux
Kernel: 5.10.87-1-lts
Neovim 0.6.0-1

Ways to reproduce:
Edit any file using nvim

@Tagvi
Copy link
Author

Tagvi commented Jan 7, 2022

Looks like I didn't have web-api properly installed

@Tagvi Tagvi closed this as completed Jan 7, 2022
@mattn
Copy link
Owner

mattn commented Jan 7, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants