Skip to content

Development in VS Code

V edited this page Sep 11, 2024 · 4 revisions

To get autocomplete for eli std library you have to:

  1. Install LuaLS/vscode-lua
  2. Download latest eli meta definitions. It can be found in releases as meta.zip.
  3. Create directory where you want to store meta definitions. For this tutorial we assume $HOME/lua/meta-definitions.
  4. Extract downloaded meta.zip into $HOME/lua/meta-definitions
  5. Rename meta directory for eli meta definitions - $HOME/lua/meta-definitions/meta -> $HOME/lua/meta-definitions/eli
  6. In your project or workspace settings add:
    ...,
    "Lua.workspace.library": [
        "$HOME/lua/meta-definitions/eli"
    ],
    "Lua.diagnostics.globals": [
        "cli",
        "env",
        "fs",
        "hash",
        "Logger",
        "lz",
        "net",
        "path",
        "proc",
        "tar",
        "util",
        "ver",
        "zip",
    ],
  1. From now on you should get hints and autocomplete for eli stdlib functions in this project/workspace.

Clone this wiki locally