cvigilv / esqueleto.nvim

Reduce your boilerplate code the lazy-bones way
MIT License
100 stars 7 forks source link

Missing "pattern" part of template directory so fails to load template. #19

Closed ElPiloto closed 1 year ago

ElPiloto commented 1 year ago

Hello,

Thanks for the plugin! I get an error when I try to insert a python skeleton. If I have ...../skeletons/python/test.py in my skeletons, and pattern = {'python'} in my esqueleto config, it throws this error when I try to

image

I've isolated it to this line here, which which works when I modify it to include the pattern. https://github.com/cvigilv/esqueleto.nvim/blob/77640778a7d280f339be703709bae87831f1197c/lua/esqueleto/init.lua#L52

For good measure, here's my exact config:

image

Please let me know if there's a bug here or if I've got something misconfigured. Thanks!

cvigilv commented 1 year ago

Thanks for the bug report, will fix in a couple of hours.

cvigilv commented 1 year ago

Fixed in release v0.2.1