lua-language-server icon indicating copy to clipboard operation
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"

Open chadvandy opened this issue 3 years ago • 0 comments

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.

Screenshot 2021-12-11 101408 Screenshot 2021-12-11 101422

chadvandy avatar Dec 11 '21 15:12 chadvandy