weilbith / nvim-code-action-menu

Pop-up menu for code actions to show meta-information and diff preview
MIT License
577 stars 19 forks source link

[:bug: bug report] #58

Open DoeringChristian opened 2 years ago

DoeringChristian commented 2 years ago

Hi, I have noticed an issue when using umlauts e.g. äöü. The changed text is inserted before the point it should be. Screenshot from 2022-10-17 23-53-59 I think the columns are not expanded to character offsets but I don't know how this works in lua. Thanks for your Help.

weilbith commented 1 year ago

True. Currently we pass static encoding. I think I generally need to look into how this works. But does it work correctly to apply the action and only the preview is wrong?

DoeringChristian commented 1 year ago

It also applies the correction incorrectly.

weilbith commented 1 year ago

Okay. So that means we need to set the encoding properly according to the respective client setting. 😓