Skip to content

Commit

Permalink
chore: Add .luarc.json to gitignore and add example
Browse files Browse the repository at this point in the history
The example is missing the `workspace.library` as i haven't found a
proper way to integrate this with the glua-api-snippets [1] yet in my
Neovim setup. In my current setup `workspace.library` points to a local
clone.

VSCode Users should be able to use the `Lua Language Server Addon Manager`
to enable the garrysmod addon (if they have the lua language server
installed).
I haven't tested this, therefore i don't know if the .luarc.json is even
necessary in that case.

This file is mostly set here for reference purposes.
  • Loading branch information
Histalek committed Oct 17, 2023
1 parent c1cd591 commit 14418bc
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ Temporary Items
todo.txt
addon.json
*.gma
.luarc.json

ttt2.jpg
34 changes: 34 additions & 0 deletions .luarc.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"diagnostics.disable": [
"duplicate-set-field",
"unused-local",
"lowercase-global",
"inject-field",
"undefined-field",
"param-type-mismatch",
"cast-local-type"
],
"diagnostics.globals": [
"GM",
"BaseClass",
"CLGAMEMODEMENU",
"CLGAMEMODESUBMENU",
"CLSCOREMENU",
"EVENT",
"TEXFILTER"
],
"diagnostics.ignoredFiles": "Enable",
"format.enable": false,
"runtime.special": {
"include": "require",
"includeCS": "require"
},
"runtime.version": "Lua 5.1",
"runtime.nonstandardSymbol": [
"//",
"/**/",
"continue"
],
"workspace.checkThirdParty": false
}

0 comments on commit 14418bc

Please sign in to comment.