Closed komidore64 closed 7 months ago
I have the same issue, it'd be great to see it merged! thank you
@hrsh7th this does seem like a pretty good change IMO, not sure if there is a more elegant way to solve this but it's nice to note that the user does not HAVE to provide each of the fields
This would be something interesting to think about as an ecosystem if there is an easier way to mark all fields as optional or something
Thank you!
I have been getting "Missing required fields" messages from lua-language-server (
> 3.6.23
) for table values handed torequire('cmp').setup()
.This is a naive attempt to fix those missing required fields messages. I'm still fairly new to Lua, but happy to learn!
Please let me know if I've missed any others that are optional so I can get those marked too.
Once applying this patch to a local checkout of
nvim-cmp
, I don't get missing field diagnostic messages anymore.Thanks for considering my patch!