tzachar / cmp-tabnine

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

Updating percentage keys #97

Closed Curs3W4ll closed 1 year ago

Curs3W4ll commented 1 year ago

The keys was wrong in the documentation, idk why, but fixed it

Curs3W4ll commented 1 year ago

My vim was displaying nil as percentage so I was searching why, After dumping the value of entry.completion_item I found that the detail key was under a completion_metadata key.

image
tzachar commented 1 year ago

Thanks for this. I did not notice tabnine change the completion format. I think the proper way of handling this is to add it to entry.labelDetails Check out 41e5f0c124d0edca5a73b9b9e31e6684cd66b6bf which should fix the issue