diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-06-05 08:21:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 08:21:23 -0500 |
commit | ca26ec34386dfe98b0edf3de9aeb7b66f40d5efd (patch) | |
tree | ecfab5440ecb9c9d0badf5f9ca1bd75cf9d71bd1 /runtime/lua/vim/lsp/protocol.lua | |
parent | 21187e1c73e6887ce407164c98320555374387a9 (diff) | |
download | rneovim-ca26ec34386dfe98b0edf3de9aeb7b66f40d5efd.tar.gz rneovim-ca26ec34386dfe98b0edf3de9aeb7b66f40d5efd.tar.bz2 rneovim-ca26ec34386dfe98b0edf3de9aeb7b66f40d5efd.zip |
fix(lsp): use only utf-16 in default client positionEncodings (#23903)
The Nvim client does not yet support multiple offset encodings for
clients in the same buffer. Until it does, stick to utf-16 by default.
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r-- | runtime/lua/vim/lsp/protocol.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua index 7e49a572e7..7558b5c6ba 100644 --- a/runtime/lua/vim/lsp/protocol.lua +++ b/runtime/lua/vim/lsp/protocol.lua @@ -636,9 +636,7 @@ function protocol.make_client_capabilities() return { general = { positionEncodings = { - 'utf-8', 'utf-16', - 'utf-32', }, }, textDocument = { |