-
Notifications
You must be signed in to change notification settings - Fork 2
Development in VS Code
V edited this page Sep 11, 2024
·
4 revisions
To get autocomplete for eli std library you have to:
- Install LuaLS/vscode-lua
- Download latest eli meta definitions. It can be found in releases as meta.zip.
- Create directory where you want to store meta definitions. For this tutorial we assume
$HOME/lua/meta-definitions. - Extract downloaded
meta.zipinto$HOME/lua/meta-definitions - Rename meta directory for eli meta definitions -
$HOME/lua/meta-definitions/meta->$HOME/lua/meta-definitions/eli - 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",
],- From now on you should get hints and autocomplete for eli stdlib functions in this project/workspace.