cvigilv / esqueleto.nvim

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

feat(template): insert method `vim.snippet.expand` instead `nvim_buf_set_lines` #57

Closed AgatZan closed 1 week ago

AgatZan commented 1 week ago

There is a snippet API for inserting templates, which will allow you to add a little more freedom to create skeletons, since it will rely on the specification

Usage example:

cvigilv commented 1 week ago

This is a nice idea but defeats the purpose of templating (imho). I thought of it when i started developing this plugin, but decided going against it since it would mean I could simply have a snippets manager with the complete template inside it. I prefer having templates and snippets separated, as they can be involved in different things and have different workflows.

The idea of having variable transformation is interesting, I could look into implementing that.

cvigilv commented 1 week ago

Closing since I won't implement this