Closed heygarrett closed 1 year ago
AFAIK the Lua LS is not smart enough to infer the types of the module so it's likely from a type file you have from another plugin like lua-dev.nvim. If you use goto definition it should show where the type is defined.
If you use goto definition it should show where the type is defined.
It appears to be getting the definition from here: https://github.com/williamboman/mason.nvim/blob/main/lua/mason-core/notify.lua
I have no idea how to rectify that. 🤔 Thanks though!
The docs say the notify function takes 1-3 arguments (
msg
,level
andopts
), but lua-language-server is giving me a warning and says the function only takes 2 arguments: