nshen / learn-neovim-lua

Neovim 配置实战:从 0 到 1 打造自己的 IDE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

attempt to call field "cmp_format" ( a nil value)

fgqile opened this issue · comments

When I want open the nvim, I get this error.
This computer is ubuntu 16.04

Error detected while processing /home/auto/.config/nvim/init.lua: E5113: Error while calling lua chunk: /home/auto/.config/nvim/lua/lsp/ui.lua:117: attempt to call field 'cmp_format' (a nil value) stack traceback: /home/auto/.config/nvim/lua/lsp/ui.lua:117: in main chunk [C]: in function 'require' /home/auto/.config/nvim/lua/lsp/cmp.lua:43: in main chunk [C]: in function 'require' /home/auto/.config/nvim/init.lua:27: in main chunk Press ENTER or type command to continue

image

image

Can you give me some advise?

attempt to call field 'cmp_format' (a nil value)

cmp_format is a method of lspkind

you should try uninstall lspkind first, then reinstall it

use("onsails/lspkind-nvim")

已经解决了,我清除了所有插件,然后重新安装,之后没有问题了。多谢帮忙。