cvigilv / esqueleto.nvim

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

Improve the WYSIWYG-ness of skeletons #40

Closed itepechi closed 9 months ago

itepechi commented 9 months ago

This PR will make the expanded skeletons look the same as the raw skeleton files by removing the new line at EOF that Neovim implicitly adds when writing files.

This PR includes two bonus commits: a fix for a bug where user key maps could cause unexpected behaviour, and support for skeletons with CR/CRLF line endings. Let me know if you want these as separate PRs; I will rebase them to a different branch.

Screenshots

By using these skeletons:

Test skeleton files

Original behaviour

Original behaviour

This PR

This PR

itepechi commented 9 months ago

Fixed the inaccurately written comment. Sorry for the mess.

cvigilv commented 9 months ago

This is an awesome PR, thanks a lot! I'll merge it to main immediately.