Skip to content

Instantly share code, notes, and snippets.

@h4k1m0u
Last active August 6, 2026 18:38
Show Gist options
  • Select an option

  • Save h4k1m0u/0ef25af5c2630062937944ddc7741458 to your computer and use it in GitHub Desktop.

Select an option

Save h4k1m0u/0ef25af5c2630062937944ddc7741458 to your computer and use it in GitHub Desktop.
Notes about Lua

Autocomplete for Love2D

To get autocomplete for love2d in neovim (using lua_ls & neovim's plugins), .luarc.json must be put at the root of the project:

{
  "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
  "workspace.library": [
    "${3rd}/love2d/library"
  ]
}

workspace.library is used by lua_ls to find definitions files for love2d as suggested here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment