Open tlindsay opened 1 year ago
I think this may be intended, at least judging by the doc. It states that the value can be cmp.TriggerEvent[]
or false
, rather than cmp.TriggerEvent[]
or boolean
.
same problem, update to :
commit 935b4069ce73b60ba9075bf05ee6ab50ed3af1a9 (grafted, HEAD -> main, origin/main, origin/HEAD)
Author: hrsh7th <629908+hrsh7th@users.noreply.github.com>
Date: Mon May 8 11:41:15 2023 +0900
Improve misc.merge
error:
Error executing vim.schedule lua callback: vim/shared.lua:0: t: expected table, got boolean
stack traceback:
[C]: in function 'error'
vim/shared.lua: in function 'validate'
vim/shared.lua: in function 'tbl_contains'
....config/nvim/pack/packer/start/nvim-cmp/lua/cmp/core.lua:168: in function 'autoindent'
....config/nvim/pack/packer/start/nvim-cmp/lua/cmp/core.lua:161: in function 'on_change'
....config/nvim/pack/packer/start/nvim-cmp/lua/cmp/init.lua:304: in function 'callback'
.../nvim/pack/packer/start/nvim-cmp/lua/cmp/utils/async.lua:138: in function <.../nvim/pack/packer/start/nvim-cmp/lua/cmp/utils/async.lua:136>
:
Hm... I intent the false or cmp.TriggerEvent[]
but I don't intent that the change should be breaking anything.
At least, please change the value to cmp.TriggerEvent[]
. I'll check codes anyway.
Changing that line to completion = { autocomplete = { require('cmp.types').cmp.TriggerEvent.TextChanged } },
fixed the issue.
I think that my config has actually not been working as intended for a long time, I just didn't notice because autocomplete = true
would silently fail.
Changing that line to
completion = { autocomplete = { require('cmp.types').cmp.TriggerEvent.TextChanged } },
fixed the issue.I think that my config has actually not been working as intended for a long time, I just didn't notice because
autocomplete = true
would silently fail.
weird that does seem to work here.
completion = { autocomplete = { require('cmp.types').cmp.TriggerEvent.TextChanged } },
sources = {
{ name = "nvim_lsp" },
{ name = "buffer" },
{ name = "luasnip" },
{ name = "nvim_lsp_signature_help" },
{ name = "path" },
},
and I'm still getting with NVIM v0.9.0
cmp:GHOST_TEXT: Error executing lua: ...hare/nvim/lazy/nvim-cmp/lua/cmp/view/ghost_text_view.lua:40: attempt to index local 'c'
oh, I disabled
experimental = {
ghost_text = false,
}
and now it's seems to be working again.
FAQ
Announcement
Minimal reproducible full config
Description
I updated my neovim plugins this morning. This was the diff from my Lazy.nvim log:
Steps to reproduce
1)
$ nvim -u ~/cmp-repro.vim
2) Type:
Expected behavior
I should be in my
cmdline
with no errorsActual behavior
I'm getting the following exception
Additional context
My minimal config to reproduce this error includes the following block:
Manually setting
autocomplete = false
fixes the error. I believe this issue is related to #1565, however PR #1563 does not fix my issue.