Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ncm2Public

Commit3c5ef4f

Browse files
committed
Fix completion-handler signature for neovim 0.5.1+
The signature got changed in 0.5.1[1] which caused ncm2's handler tofail with errors such as attempt to index local 'item' (a number value)because the third argument of the handler function isn't the LSPresponse, but additional state.Fixes#200[1]neovim/neovim@cd8f6c5
1 parentd2d8cc4 commit3c5ef4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lua/ncm2/init.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ local function on_complete_lsp(context)
1212
context.bufnr,
1313
'textDocument/completion',
1414
vim.lsp.util.make_position_params(),
15-
function(err,_,result)
15+
function(err,result,_)
1616
on_completion_result(context,err,_,result)
1717
end
1818
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp