Skip to content

Instantly share code, notes, and snippets.

@FatCatLikesBeer
Created April 8, 2025 05:23
Show Gist options
  • Save FatCatLikesBeer/0e65a91b5125db5af6e82ae1592c1dd0 to your computer and use it in GitHub Desktop.
Save FatCatLikesBeer/0e65a91b5125db5af6e82ae1592c1dd0 to your computer and use it in GitHub Desktop.
.luarc.json Scaffolding for LÖVE2D types generated by EmmyLua/Emmy-love-api from love2d-community/love-api
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"runtime": {
"version": "LuaJIT"
},
"diagnostics": {
"globals": [
"love"
]
},
"workspace": {
"library": [
"./types",
"${3rd}/love2d/library"
],
"checkThirdParty": "Apply"
},
"telemetry": {
"enable": false
},
"hover": {
"enable": true
},
"runtime.special": {
"love.filesystem.load": "loadfile"
}
}
@FatCatLikesBeer
Copy link
Author

Clone the love2d-community/love-api. Follow instructions in EmmyLua/Emmy-love-api github page. Add the 'api' directory, along with this .luarc.json files into the working directory of your LÖVE2D project. And hope the nvim LSP works itself out.

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