ldelossa / litee.nvim

A framework for building Neovim plugins
409 stars 14 forks source link

Fix: limit icon pattern to single token #117

Closed EmilOhlsson closed 4 months ago

EmilOhlsson commented 4 months ago

When icons uses normal letters, like the 'simple' icon set for example, the highlight matching will also apply to all other instances of these icons, even within other words. Consider the case when 'Expanded' icon is set to 'v', then the underlined part of the example below will use same highlight as 'LTExpanded'

X some_symbol_with_v ~

This change makes icon symbol matching cover the entire words/tokens, instead of parts of

ldelossa commented 4 months ago

Thank you!!