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
{{ message }}
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
When using metals, accepting a completion item can include additionalTextEdits to import the selected item. I'm using the same mapping for <CR> as in the README (i.e. with <Plug>(completion_confirm_completion)). Recently, the feature broke when accepting the completion with the following error:
Error detected while processing CompleteDone Autocommands for "<buffer=1>":
E5108: Error executing lua .../.config/nvim/plugged/completion-nvim/lua/completion.lua:87: attempt to perform arithmetic on upvalue 'lnum' (a nil value)
I traced it back to commit 8aecb23, more precisely here, which changed this
locallnum, _=unpack(api.nvim_win_get_cursor(0))`
into
locallnum=api.nvim_win_get_cursor(0)[0]
Apparently this isn't equivalent. Reverting back this single line fixes the issue. Sorry for the missing reproduction, let me know if one is necessary. Thanks !
When using
metals, accepting a completion item can includeadditionalTextEditsto import the selected item. I'm using the same mapping for<CR>as in the README (i.e. with<Plug>(completion_confirm_completion)). Recently, the feature broke when accepting the completion with the following error:I traced it back to commit 8aecb23, more precisely here, which changed this
into
Apparently this isn't equivalent. Reverting back this single line fixes the issue. Sorry for the missing reproduction, let me know if one is necessary. Thanks !