You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe, this is not a bug. The column number is the number of characters on the left of the cursor and tab is a single character.
Lualine doesn't make this number up. Most likely it is just taken from the vim API. And you can use this number to jump to a specific column, e.g. if you type 5| you jump to the fifth column.
By default neovim will show the line number, column number and virtual column number (only shown if it differs from the column number), among other things we don't care about in this case. The following config snippet will do just that while preserving the formatting style of the location() function used by lualine, but don't expect it to work with inlay hints:
Self Checks
How to reproduce the problem
Expected behaviour
The column position is 9 (or 1 + your tab size).
Actual behaviour
The column position is 2 (1 + 1 tab character).
Minimal config to reproduce the issue
Additional information
This was broken by @davidt's PR, #1243.
vim.api.virtcol
correctly counted tab characters at their proper length, butvim.fn.charcol
does not.The text was updated successfully, but these errors were encountered: