You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the addition of adding the offset encoding to apply_text_edits, we set the default to utf-16 to make tests pass in the current state. However, we may want to set this via lsp as noted on this PR using vim.lsp.buf_get_clients(bufnr)[1].offset_encoding. Then we could default back to utf-16 if lsp not present (or set to some other default via configuration?). This would however mean that we would need an lsp in the CI, which would be interesting to add back in...
The text was updated successfully, but these errors were encountered:
teddylear
changed the title
How to configure offset encoding on apply_text_edits
Configure offset encoding on apply_text_edits
Jan 14, 2022
With the addition of adding the offset encoding to
apply_text_edits
, we set the default toutf-16
to make tests pass in the current state. However, we may want to set this via lsp as noted on this PR usingvim.lsp.buf_get_clients(bufnr)[1].offset_encoding
. Then we could default back toutf-16
if lsp not present (or set to some other default via configuration?). This would however mean that we would need an lsp in the CI, which would be interesting to add back in...The text was updated successfully, but these errors were encountered: