cog1to / st-ligatures

Patches for ST (suckless terminal) that add support for ligatures drawing
53 stars 5 forks source link

Only certain ligatures work in vim #1

Closed codecalec closed 4 years ago

codecalec commented 4 years ago

Thanks so much for this patch.

All ligatures work fine in nano but not vim where only certain patterns work. Do you need to edit your vimrc?

screenshot-1586045061

cog1to commented 4 years ago

They all work, but there are some limitations. Because of the current drawing engine, I haven't found a way to span ligatures across different colors, so when color change occurs in the middle of a ligature sequence, they break into individual symbols.

This happens when vim cannot recognize the syntax and tries to do its best to guess. In actual code with proper syntax support, or with syntax off, it will display all ligatures correctly.

I updated the test file to get rid of some artifacts, and also added examples for different languages, so you can test those if you have appropriate language plugins for vim.