Distinguish between the infamous en and em dashes
Use your favourite package manager.
{
"mvllow/supplement.nvim",
}
Run the initial setup:
require("supplement").setup()
You will now see virtual text supplementing en and em dashes like so:
"Self-reflection—--the key to understanding one's place in the universe—--requires a delicate balance between inner peace and external engagement, an age–-old challenge that spans centuries of human thought."
Notice the en and em dashes are followed by one and two hyphens, respectively.
Additional helper functions are included to manage the plugin state:
require("supplement").enable()
require("supplement").disable()
require("supplement").toggle()
Pull requests are welcome and appreciated!