this post was submitted on 14 Mar 2024
1 points (100.0% liked)

Neovim

2155 readers
1 users here now

founded 1 year ago
MODERATORS
top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 7 months ago (1 children)

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.

[–] [email protected] 0 points 7 months ago (1 children)

That’s an interesting idea. How exactly would you imagine it to work?

[–] [email protected] 0 points 7 months ago

There'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.

[–] [email protected] 0 points 7 months ago

Interesting idea... Thanks!

[–] [email protected] 0 points 7 months ago

Ive been looking for an alternative auto-pair plugin, so I'll check this out. Thanks