Closed BirdeeHub closed 2 months ago
Im not sure this is possible to fix much better than I already did by including globals = { 'nixCats' } in the lua lsp configuration.
Maybe in the lazydev settings this can be improved? But thats still on the end user. I was hoping to be able to fix this internally. I was hoping including a meta.lua inside the generated nixCats plugin would work better than it did. Regardless, if anyone knows how to improve this let me know.
Luckily it has absolutely no impact on functionality XD
I just realized the vim global variable sometimes says its not found too. If vim itself cant get the type hint for a global to work well, I think there is not much chance of me doing it XD If anyone knows how to tell lazydev about the location of nixCats plugin so that it can find the meta.lua without needing to have require('nixCats') in the same file, let me know. Im closing this issue though, no point. It works as well as it should, regardless of if I am satisfied with it XD
The nixCats global function's hover doc type annotation doesnt work until you enter a file that contains require('nixCats').something and then it loads.