tzachar / cmp-tabnine

TabNine plugin for hrsh7th/nvim-cmp
MIT License
286 stars 27 forks source link

Fix error when response.message is nil #61

Closed equal-l2 closed 2 years ago

equal-l2 commented 2 years ago

string.gmatch returns iterator (as a function), which is never nil. To check if a string contains a specific substring, we should use string.find instead.

Close #60.

tzachar commented 2 years ago

10x