lua-language-server
lua-language-server copied to clipboard
When a parameter for a function is defined as `fun(param:type)`, the auto-complete when you're using that function stops working beyond typing "fun"
For example, having a function defined as:
---@param callback fun(text:string)
local function my_fun(callback)
callback()
end
When you go to call it using my_fun(), the auto-completer suggests "fun(text:string), but if you start typing func the auto-completer loses the suggestion.
