Fix encoding translation in other places.

This commit is contained in:
Ashkan Kiani
2019-11-21 16:23:12 -08:00
parent c055ca00ce
commit a3d67dac5f
3 changed files with 24 additions and 7 deletions

View File

@@ -862,7 +862,7 @@ function lsp.omnifunc(findstart, base)
position = {
-- 0-indexed for both line and character
line = pos[1] - 1,
character = pos[2],
character = vim.str_utfindex(line, pos[2]),
};
-- The completion context. This is only available if the client specifies
-- to send this using `ClientCapabilities.textDocument.completion.contextSupport === true`