Lua intellisense: show module functions
Module:
local M = {}
--- find users by name
-- @param name string: user name
-- @return object with array of users
function M.find_users(name)
return {users = {}};
end
return M
Usage:
local userapi = require("userapi")
pcall(userapi.find_users, name)
It works, but intellisense doesn't show me the userapi functions.
请先登录再写评论。
We don't have a built-in support for Lua.
Are you using any of those plugins:
Yes, I'm using Lua plugin.
Please report it to the plugin author. Seems like that's a known issue: https://bitbucket.org/sylvanaar2/lua-for-idea/issues/226/autocomplete-inherit
Ok, thanks for help (: