Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nvim11 position encoding fix #1513

Merged
merged 7 commits into from
Jan 14, 2025

Conversation

LarssonMartin1998
Copy link
Contributor

Make sure to always pass a offset_encoding to make_given_range_params and make_position_params. This is now a warning in nvim 11 even though the functionality hasnt changed, so it's backwards compatible.

Also slight refactorting, add util function get_offset_encoding with table for filtering how to get it to match new nvim api. This is used everywhere now.

@glepnir
Copy link
Member

glepnir commented Jan 14, 2025

lint fix thanks

@glepnir glepnir merged commit e5e25f8 into nvimdev:main Jan 14, 2025
2 of 4 checks passed
@LarssonMartin1998 LarssonMartin1998 deleted the nvim11-position_encoding-fix branch January 14, 2025 10:34
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.

2 participants