Skip to content

Conversation

ppmzhang2
Copy link

This fixes a warning emitted by Neovim when invoking vim.lsp.util.make_position_params() without specifying a position_encoding. Previously, the plugin always fell back to the default encoding, producing the message:

position_encoding param is required in vim.lsp.util.make_position_params. Defaulting to position encoding of the first client.

To fix it, we pass client.offset_encoding to make_position_params in M.request_inline_completion to remove the noisy warning and ensure correct position encoding is used.

@wsxiaoys wsxiaoys requested a review from icycodes September 12, 2025 16:17
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.

1 participant