Skip to content

fix(menu): alignment with tabs & virtualedit#2560

Open
Tom94 wants to merge 1 commit into
saghen:mainfrom
Tom94:fix-virtualedit-alignment
Open

fix(menu): alignment with tabs & virtualedit#2560
Tom94 wants to merge 1 commit into
saghen:mainfrom
Tom94:fix-virtualedit-alignment

Conversation

@Tom94

@Tom94 Tom94 commented Jun 8, 2026

Copy link
Copy Markdown

Fixes #2558

Temporarily disabling vim.wo.virtualedit feels a little bit hacky to me. I'm not sure whether this is an acceptable approach or not -- I'm relatively new to nvim plugin programming.

That said, I tried several alternative approaches that were all significantly more complex and brittle when combined with multi-width non-tab characters. This approach here is the only one I could come up with that would reliably work in all situations, including manually triggered completion in virtual regions.

@Tom94 Tom94 force-pushed the fix-virtualedit-alignment branch from e9f0505 to 516b3c5 Compare June 8, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misaligned completion menu w/ tabs + virtualedit

1 participant