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 has been archived by the owner on Oct 13, 2021. It is now read-only.
When I try to active completion-nvim in my init.lua with the on_attach function, I get a bunch of errors.
Error running config for completion-nvim: ...ite/pack/packer/start/completion-nvim/lua/completion.lua:251: bad argument #1 to 'ipairs' (table expected, got nil)
disable_filetypes which is returned by get_options is nil the moment ipairs is called. I tried to manually edit the file and add disable_filetypes = disable_filetypes or {} at line 250 but I got basically the same error elsewhere.
Error running config for completion-nvim: ...ite/pack/packer/start/completion-nvim/lua/completion.lua:266: bad argument #1 to 'len' (string expected, got nil)
When I try to active
completion-nvim
in myinit.lua
with theon_attach
function, I get a bunch of errors.If we look at the offending line:
completion-nvim/lua/completion.lua
Lines 246 to 255 in 139fb6c
disable_filetypes
which is returned byget_options
isnil
the momentipairs
is called. I tried to manually edit the file and adddisable_filetypes = disable_filetypes or {}
at line 250 but I got basically the same error elsewhere.which is basically the same error.
completion-nvim/lua/completion.lua
Lines 265 to 270 in 139fb6c
string.len()
is gettingnil
as its argument.My testing minimal init.lua
(literally my one-line
init.lua
created in a temporary home directory)Expected behavior
I expect not to get errors when I call
on_attach
. Perhapsget_options
should handle missing options better (?)The text was updated successfully, but these errors were encountered: