Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 6d322d0

Browse files
authored
Merge pull request #208 from nvim-lua/fix_auto_hover
fix auto hover when inserting snippet items
2 parents 97e3bcb + 6029dd3 commit 6d322d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/completion/hover.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ M.autoOpenHoverInPopup = function()
358358
col = vim.str_utfindex(line, col)
359359
local params = {
360360
textDocument = vim.lsp.util.make_text_document_params();
361-
position = { line = row; character = col-1; }
361+
position = { line = row; character = col-string.len(item.word); }
362362
}
363363
vim.lsp.buf_request(bufnr, 'textDocument/hover', params)
364364
end

0 commit comments

Comments
 (0)