echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.54k stars 175 forks source link

mini.surround: Added explanaition of defining output specification with function to documentation #869

Closed aShabat closed 2 months ago

aShabat commented 2 months ago

When reading through docs of mini.surround, I noticed that they explain only one way of defining output specification of surround, with plain strings. Later in examples the docs show that we can also use functions that return output specification. So I wanted to add this option to surround specification. And I also added an example with output of a default function call surround.

echasnovski commented 2 months ago

Thanks for spotting this!

I've merged into a temporary branch to clean up a bit. Edit: should now be part of main.