Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

autocomplete for /home/user/.luarocks #29

@laoshaw

Description

@laoshaw

I edited $HOME/.luacompleterc

{
    "luaVersion": "5.1",
    "packagePath": "./?.lua;/home/user/.luarocks/share/lua/5.1/?.lua"
}

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)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions