Cod3x LuaLS example config

Copy .luarc.json from this directory into the root folder of your OpenMW-Lua mod project, then replace /absolute/path/to/Cod3x with the folder where you extracted Cod3x.

Use forward slashes in paths, even on Windows:

{
    "runtime.version": "LuaJIT",
    "workspace.library": [
        "C:/Modding/Tools/Cod3x"
    ],
    "runtime.plugin": "C:/Modding/Tools/Cod3x/omw_context_plugin.lua",
    "language.fixIndent": false,
    "typeFormat.config": {
        "format_line": "false"
    }
}

language.fixIndent and typeFormat.config.format_line are LuaLS settings used to disable VSCode/VSCodium on-type formatting while keeping Cod3x's virtual LuaLS transforms enabled. The current LuaLS docs list them at https://luals.github.io/wiki/settings/#languagefixindent and https://luals.github.io/wiki/settings/#typeformatconfig.

This file is meant for your mod workspace, not your OpenMW install directory.