You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository scrapes the Garry's Mod Lua API and generates snippets that will help EmmyLua provide autocompletion in VSCodeand IntelliJ.
6
+
This repository scrapes the Garry's Mod Lua API and generates snippets that will help provide autocompletion for Lua in editors like VSCode, IntelliJ and more.
7
7
8
8
## 🔨 Usage
9
9
10
10
*In the following instructions we'll use `myproject` as an example name of the project we're working on.*
11
11
12
-
1. Install the EmmyLua extension for your editor of choice <small>*([EmmyLua VSCode Extension](https://marketplace.visualstudio.com/items?itemName=tangzx.emmylua) | [EmmyLua IntelliJ Plugin](https://plugins.jetbrains.com/plugin/9768-emmylua))*</small>
12
+
1. Install one of these extensions for your editor of choice:
13
+
***Lua Language Server:**[VSCode Extension](https://marketplace.visualstudio.com/items?itemName=sumneko.lua) | [NeoVim Configuration](https://github.com/LuaLS/lua-language-server#neovim)
2. Download the latest Lua release named something like `YYYY-MM-DD_HH-MM-SS.lua.zip` from [🔗 the releases page](https://github.com/luttje/glua-api-snippets/releases).
15
17
16
18
3. Extract the downloaded release to a directory on your computer. We'll use `~/glua-api-snippets` as an example.
17
19
18
-
4.EmmyLua needs to be able to find the snippets in your project workspace. You can either:
20
+
4.The Language Server needs to be able to find the snippets in your project workspace. You can either:
19
21
20
22
<details>
21
23
<summary>Add the directory to your editor workspace.</summary>
@@ -77,4 +79,4 @@ This project uses [Jest](https://jestjs.io/) to automate testing. You can run th
77
79
78
80
### API as JSON
79
81
80
-
The API is also available as JSON. You can find it with the Lua API package [on the releases page](https://github.com/luttje/glua-api-snippets/releases). It is named something like `YYYY-MM-DD_HH-MM-SS.json.zip`.
82
+
The API is also available as JSON. You can find it with the Lua API package [on the releases page](https://github.com/luttje/glua-api-snippets/releases). It is named something like `YYYY-MM-DD_HH-MM-SS.json.zip`.
0 commit comments