hedyhli / outline.nvim

Code outline sidebar powered by LSP. Significantly enhanced & refactored fork of symbols-outline.nvim.
https://sr.ht/~hedy/outline.nvim
MIT License
543 stars 15 forks source link

Using unicode symbols might be better for compatibility across different terminals #75

Open aerosayan opened 2 months ago

aerosayan commented 2 months ago

Hello,

I'm enjoying using the plugin.

Issue

Some default icon symbols are not shown correctly in terminator terminal on linux.

For example, the markers for the folded tabs are: markers = { '', '' }, which doesn't even render correctly on github.

Similarly, the icons for many other symbols don't render correctly even on github.

The problem persists even in my terminal, and the default symbols look horrible.

rendering-bug

12

Solution

I've found that simple Unicode characters are well supported, and work very well for common terimnal emulators on Linux, like terminator.

So I've modified the default settings to only use Unicode characters, and they seemed to work well.

Would it be possible to use such simple Unicode characters as the default, or at least, provide them as a fallback option, so the plugin works correctly out of the box?

Thanks!

rendering-correctly

aerosayan commented 2 months ago

Maintaining a list of the unicode characters in the repo might be helpful.

This is little bit extra work, but might be better for consistency.

Let's consider this symbol (circle with backlash): ⍉

It is U+2349

Copy pasting the characters sometimes doesn't work.

In such a situation, knowing the symbol name: U+2349 and/or the URL to a source, would be helpful.