This is a collection of types for GLib and Gio through LGI.
LGI is gobject-introspection based dynamic Lua binding to GObject based libraries. It allows using GObject-based libraries directly from Lua.
None of the types are complete, but they are great for getting started with LGI.
- Install the LGI package.
- Clone this repository (I suggest using a submodule).
- Add the
lgi-typesdirectory to yourworkspace.libraryin.luarc.json. - Require the
lgimodule in your code. The types will automatically be applied.
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"workspace.library": ["/path/to/lgi-types"]
}Generated at commit 67769fafea4f5460600efdb69fe0a09a6a52e783
| cloc | github.com/AlDanial/cloc v 2.02 |
|---|
| Language | files | blank | comment | code |
|---|---|---|---|---|
| Markdown | 2 | 14 | 1 | 43 |
| JSON | 1 | 0 | 0 | 12 |
| TOML | 1 | 1 | 0 | 9 |
| Lua | 25 | 73 | 752 | 7 |
| -------- | -------- | -------- | -------- | -------- |
| SUM: | 29 | 88 | 753 | 71 |