xigoi@lemmy.sdf.org to Neovim@programming.dev · 6 months agomanual-pairs: Neovim plugin that rethinks the concept of automatically pairing delimitersgit.sr.htexternal-linkmessage-square5fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkmanual-pairs: Neovim plugin that rethinks the concept of automatically pairing delimitersgit.sr.htxigoi@lemmy.sdf.org to Neovim@programming.dev · 6 months agomessage-square5fedilink
minus-squarematcha_addict@lemy.lollinkfedilinkarrow-up0·6 months agoI love the idea of less-automatic pairs. I wish there was a plugin that keeps track of unclosed pairs, but instead of inserting them automatically, it just reminds you of them and their order. For some reason, inserting pairs automatically disorients me a bit.
minus-squarexigoi@lemmy.sdf.orgOPlinkfedilinkarrow-up0·6 months agoThat’s an interesting idea. How exactly would you imagine it to work?
minus-squarematcha_addict@lemy.lollinkfedilinkarrow-up0·6 months agoThere’s a couple of ways I can see it: highlights unclosed pairs closing pairs shown as faded / gray text, kind of like some auto complete systems like copilot in vscode. it could be some key bind you press, and it closes the next unclosed pair The following is less preferred but still works: maybe the status line or a pop up shows the order of unclosed pairs.
I love the idea of less-automatic pairs.
I wish there was a plugin that keeps track of unclosed pairs, but instead of inserting them automatically, it just reminds you of them and their order.
For some reason, inserting pairs automatically disorients me a bit.
That’s an interesting idea. How exactly would you imagine it to work?
There’s a couple of ways I can see it:
The following is less preferred but still works: maybe the status line or a pop up shows the order of unclosed pairs.