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

Commit b3d8cd0

Browse files
committed
fix: error on addtional textedit(#157)
1 parent 8aecb23 commit b3d8cd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/completion.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ end
6767

6868
-- apply additionalTextEdits in LSP specs
6969
local function applyAddtionalTextEdits(completed_item)
70-
local lnum = api.nvim_win_get_cursor(0)[0]
70+
local lnum = api.nvim_win_get_cursor(0)[1]
7171
if completed_item.user_data.lsp ~= nil then
7272
local item = completed_item.user_data.lsp.completion_item
7373
-- vim-vsnip have better additional text edits...

0 commit comments

Comments
 (0)