feat(lsp): support utf-8 and utf-32 position encodings

Resolves #30034
This commit is contained in:
Lewis Russell 2024-11-14 14:17:33 +00:00 committed by Lewis Russell
parent 7d771c3eee
commit d3e4ffafff
2 changed files with 3 additions and 0 deletions

View File

@ -214,6 +214,7 @@ LSP
clients. clients.
• |vim.lsp.buf.signature_help()| can now cycle through different signatures • |vim.lsp.buf.signature_help()| can now cycle through different signatures
using `<C-s>` and also support multiple clients. using `<C-s>` and also support multiple clients.
• The client now supports `'utf-8'` and `'utf-32'` position encodings.
LUA LUA

View File

@ -338,7 +338,9 @@ function protocol.make_client_capabilities()
return { return {
general = { general = {
positionEncodings = { positionEncodings = {
'utf-8',
'utf-16', 'utf-16',
'utf-32',
}, },
}, },
textDocument = { textDocument = {