Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Location component was showing wrong column with inlay hints. (#…
…1243) The location component had been previously changed to use `vim.api.virtcol` (the screen position of the cursor) instead of `vim.api.col` (the byte position of the cursor), in order to prevent showing the wrong column when multibyte characters are present. Unfortunately, the new inlay hints in neovim 0.10 make heavy use of virtual text, and therefore the column shown in the location component is often incorrect. This change fixes it to use `vim.api.charcol`, which correctly handles variable-width characters without including virtual text.
- Loading branch information