lspkind.nvim icon indicating copy to clipboard operation
lspkind.nvim copied to clipboard

Error E5108: Error executing ...lspkind.lua:3: attempt to call field 'init' (a nil value)

Open zeitchef opened this issue 2 years ago • 9 comments

I'm getting the following error on startup since the last update: Screen Shot 2022-04-18 at 12 28 11

zeitchef avatar Apr 18 '22 10:04 zeitchef

I have the same problem

ghost avatar Apr 18 '22 11:04 ghost

same for me

wenjinnn avatar Apr 18 '22 11:04 wenjinnn

This hit me as well, when I upgraded to the new neovim 0.7 release.

charlesnicholson avatar Apr 18 '22 13:04 charlesnicholson

There was an undocumented breaking change in #44.

Just change init to setup like so:

local lspkind = require("lspkind")

lspkind.setup()

vuki656 avatar Apr 18 '22 13:04 vuki656

Also, note that the plugin changed it's name from lspkind-nvim to lspkind.nvim

vuki656 avatar Apr 18 '22 13:04 vuki656

Rewriting my init code in the style of the updated homepage fixed it all; thanks for the pointer!

charlesnicholson avatar Apr 18 '22 13:04 charlesnicholson

Would still be nice for a little warning.

zeitchef avatar Apr 18 '22 13:04 zeitchef

Thanks, works well

ghost avatar Apr 18 '22 14:04 ghost

PR #44 randomly and suddenly breaks the plugin without any warning, deprecation, or documentation (UPDATE: this is now reverted).

In addition, some public APIs like lspkind.presets and lspkind.symbol_map are gone and removed, often used in completion engines and there are no alternatives for them.

wookayin avatar Apr 18 '22 16:04 wookayin