luckasRanarison / nvim-devdocs

Neovim DevDocs integration
MIT License
270 stars 20 forks source link

fix: ensure index path exists before reading #16

Closed jokajak closed 1 year ago

jokajak commented 1 year ago

This changeset ensures the index.json exists before trying to read it.

When first fetching the registry.json would get created but not the index.json and an error would be thrown.

Instead of creating index.json we just check for it.

luckasRanarison commented 1 year ago

Thanks a lot! I've missed this one