kristijanhusak / vim-dadbod-completion

Database autocompletion powered by https://github.com/tpope/vim-dadbod

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Error executing lua" after updating plugin with support for cmp

johnybx opened this issue · comments

Hi, I installed / updated this plugin to latest with support for cmp but whenever I try to use mapped keys like <CR>, <Tab>, <C-p> I get

Error executing lua [string "v:lua"]:1: attempt to index field 'utils' (a nil value)

this apply to all buffers (yes this is full error message 😐 ). If I uninstall vim-dadbod-completion or git reset git reset --hard a3f8ea8e666f4bebe12739d8854a4bd31544dfbb before cmp support everything works as expected.

This happens even when the { name = "vim-dadbod-completion" } is not used in sources for nvim-cmp.

For , I use default mappings

["<C-p>"] = cmp.mapping.select_prev_item()
["<CR>"] = cmp.mapping.confirm({
	behavior = cmp.ConfirmBehavior.Replace,
	select = true,
}),

so I don't think it is my custom config.

nvim --version
NVIM v0.6.0-dev+189-g274a3504a

If you need more info just let me know.

I pushed a change. Can you pull and give it a try?

thanks it works! 👍