kylechui / nvim-surround

Add/change/delete surrounding delimiter pairs with ease. Written with :heart: in Lua.
MIT License
3.18k stars 62 forks source link

[Testers needed] General refactor on new branch #65

Closed kylechui closed 2 years ago

kylechui commented 2 years ago

I've shifted around the code quite a bit on refactor-code, as well as introduced a bunch of comments that make use of Sumneko's type annotating system. I've been meaning to do this as a way to "prepare" for the (presumably large) changes that might crop up next week due to #60. It's already passed all of my automated tests, but I would appreciate it very much if people could test out this branch's stability with respect to their average workflows. I don't want to merge it into main just for it to break a bunch of things. Thanks everyone!

Edit: I'll be doing a review of all of the changes that I've made sometime tomorrow, to make sure that all of the changes that I've made to the code base have only changed the plumbing and none of the porcelain :)

Known "breaking changes":

andrewferrier commented 2 years ago

I don't mind doing some testing, but you haven't mentioned the name of the branch ;)

kylechui commented 2 years ago

Oops, the branch is refactor-code; it should be linked to this issue as a pending PR

kylechui commented 2 years ago

On a semi-unrelated note: would it be preferred to have a discussion page or issue for breaking changes?

andrewferrier commented 2 years ago

Just did some testing. The only issue I could find:

Otherwise, it seems pretty solid to me.

kylechui commented 2 years ago

@andrewferrier I've noted that this is a breaking change in the top-level comment of this issue thread, and will probably merge that feature into this PR since it's reasonably small

andrewferrier commented 2 years ago

On a semi-unrelated note: would it be preferred to have a discussion page or issue for breaking changes?

I think an issue seems to be the evolving convention. NeoVim does that, null-ls does that, treesitter does that, and I'm pretty sure a few other plugins do that. It's easy to subscribe to.

Note also that I think another convention is to add a ! to your conventional commits. e.g. feat! Did some stuff that broke things. I think that packer.nvim at least then highlights them specially.