kosayoda / nvim-lightbulb

VSCode đŸ’¡ for neovim's built-in LSP.
MIT License
801 stars 30 forks source link

fix lightbulb do not show when sometimes lsp client index not started… #33

Closed Crescent617 closed 2 years ago

Crescent617 commented 2 years ago

Thanks! This plugin is very useful to me. But I do not know why sometimes the index of buf lsp client is not started with 1. Thus, Lua's ipairs will not work. I think it is better to protect this in our code, or do you have any better ideas?

image
kosayoda commented 2 years ago

I don't know why client ids don't start at 1 sometimes either, but it has never happened to me. Not sure I have time to dig for the root cause but this workaround seems good to me. Thanks!