mvllow / modes.nvim

Prismatic line decorations for the adventurous vim user
550 stars 13 forks source link

fix: operator highlighting with cutlass mappings #36

Closed TheBlob42 closed 2 years ago

TheBlob42 commented 2 years ago

I just discovered your plugin and I really like the eye candy :smile: very nice work

I found a bug when also use vim-cutlass(or similar mappings): the highlighting gets stuck in operator mode

To reproduce:

ezgif-2-f24fc48032

I checked the code streamlined it a bit and reset the operator highlighting on the next key press. So far it is working without any errors for me

mvllow commented 2 years ago

Looks great, thanks!

fitrh commented 2 years ago

I'm away from my computer right now, but the code doesn't seem to be formatted with stylua

TheBlob42 commented 2 years ago

Yes you are correct, the code was not formatted with stylua I was not aware of it when hacking together my fix :see_no_evil: