-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autocomplete for /home/user/.luarocks #29
Comments
So this should definitely work; the fact that isn't is a bug. will look into 👀 |
...bump? It doesn't seem like this has been fixed. -- Create a command. This function is called by Lummander.
-- @tparam string command Command to parse for extract arguments and their requirements.
-- @tparam[opt={}] table config Options.
-- @tparam[opt=""] string config.description Command description.
-- @tparam[opt={}] table config.positional_args Command description.
-- @tparam[opt] {options} config.options CommandOptions
-- @tparam[opt=false] boolean config.hide Hide from help command
-- @tparam[opt=false] boolean config.main Set as main cli command
-- @tparam[opt] function config.action Command action function.
-- @tparam Lummander lummander CommandOptions
-- @treturn Command
function Command.new(command, config, lummander) Though... I'm not getting any completion. Here's my {
"luaVersion": "5.1",
"packagePath": "./?.lua;/home/user/.luarocks/share/lua/5.1/?.lua"
} And here's the plugin doing nothing: You mind looking into this again, even though I'm abysmally late? |
How to make it support macOS Hammerspoon code completing? |
I edited $HOME/.luacompleterc
I did luarocks install --local lua-cjson
I added $HOME/.luarocks into package.path and package.cpath.
When I use vim I can autocomplete standard Lua functions(table.insert, io.open,etc), however I can not autocomplete anything from $HOME/.luarocks/share/lua/5.1, vim displays:
User defined completion(^U^N^P) Pattern not found.
So will lua-lsp be able to index all files under $HOME/.luarocks/share/lua/5.1 somehow? what about the C modules under package.cpath? I want to do auto-complete for all imported modules and my own lua files in addition to the working built-in Lua functions(e.g. os.open etc)
The text was updated successfully, but these errors were encountered: