diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index 9691be9..3bf8b57 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -62,12 +62,10 @@ jobs: if: ${{ needs.changes.outputs.lua == 'true' }} steps: - uses: actions/checkout@v4 - - name: Run Lua LS Type Check - uses: mrcjkb/lua-typecheck-action@v0 + - uses: stevearc/nvim-typecheck-action@v2 with: - checklevel: Warning - directories: lua - configpath: .luarc.json + path: lua + luals-version: 3.16.4 markdown-format: name: Markdown Format Check diff --git a/.luarc.json b/.luarc.json index f22884c..c0448ca 100644 --- a/.luarc.json +++ b/.luarc.json @@ -1,8 +1,15 @@ { - "runtime.version": "Lua 5.1", - "runtime.path": ["lua/?.lua", "lua/?/init.lua"], - "diagnostics.globals": ["vim", "jit", "bit"], - "workspace.library": ["$VIMRUNTIME/lua", "${3rd}/luv/library"], - "workspace.checkThirdParty": false, - "completion.callSnippet": "Replace" + "runtime": { + "version": "LuaJIT", + "pathStrict": true + }, + "workspace": { + "checkThirdParty": false + }, + "type": { + "checkTableShape": true + }, + "completion": { + "callSnippet": "Replace" + } } diff --git a/selene.toml b/selene.toml index ab57300..4fbd4a4 100644 --- a/selene.toml +++ b/selene.toml @@ -1,4 +1,5 @@ std = 'vim' +exclude = [".direnv/*"] [lints] mixed_table = 'allow'