Skip to content

Commit

Permalink
feat(lsp): support utf-8 and utf-32 position encodings
Browse files Browse the repository at this point in the history
Resolves neovim#30034
  • Loading branch information
lewis6991 committed Nov 14, 2024
1 parent 7d771c3 commit d3e4ffa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions runtime/doc/news.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ LSP
clients.
|vim.lsp.buf.signature_help()| can now cycle through different signatures
using `<C-s>` and also support multiple clients.
• The client now supports `'utf-8'` and `'utf-32'` position encodings.

LUA

Expand Down
2 changes: 2 additions & 0 deletions runtime/lua/vim/lsp/protocol.lua
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ function protocol.make_client_capabilities()
return {
general = {
positionEncodings = {
'utf-8',
'utf-16',
'utf-32',
},
},
textDocument = {
Expand Down

0 comments on commit d3e4ffa

Please sign in to comment.