Skip to content

Commit

Permalink
fix(ci): install neodev before type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
pysan3 committed Nov 13, 2023
1 parent 879d350 commit 752630f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/lua_ls-typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Checkout dependency neodev
uses: actions/checkout@v3
with:
repository: "folke/neodev.nvim"
path: "deps/neodev.nvim"

- name: Type Check Code Base
uses: mrcjkb/[email protected]
with:
directories: |
lua
tests
spec
2 changes: 1 addition & 1 deletion .github/workflows/stylua.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: curl https://sh.rustup.rs -sSf | sh -s -- -y

- name: Install stylua
run: cargo install stylua --features lua51
run: cargo install stylua --features lua52

- name: Run formatting
run: stylua -v --verify .
Expand Down
8 changes: 4 additions & 4 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"Lua.diagnostics.globals": [
"vim"
],
"workspace.checkThirdParty": false
"workspace.checkThirdParty": "Disable",
"workspace.library": [
"deps/neodev.nvim"
]
}
17 changes: 17 additions & 0 deletions .neoconf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"neodev": {
"library": {
"enabled": true,
"plugins": [
"neodev.nvim"
]
}
},
"neoconf": {
"plugins": {
"lua_ls": {
"enabled": true
}
}
}
}

0 comments on commit 752630f

Please sign in to comment.