diff --git a/.github/workflows/luacheck.yaml b/.github/workflows/luacheck.yaml
new file mode 100644
index 0000000..d2916a4
--- /dev/null
+++ b/.github/workflows/luacheck.yaml
@@ -0,0 +1,18 @@
+---
+# Lint Lua code
+name: Luacheck
+
+on:
+ pull_request:
+ branches: [main]
+ push:
+ branches: [main]
+
+jobs:
+ luacheck:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: lunarmodules/luacheck@v1
+ with:
+ args: .
diff --git a/.github/workflows/stylua.yaml b/.github/workflows/stylua.yaml
index 309f8c2..c36e151 100644
--- a/.github/workflows/stylua.yaml
+++ b/.github/workflows/stylua.yaml
@@ -1,29 +1,22 @@
---
# Check Lua Formatting
-name: Check Lua Formatting in MyRepo
+name: StyLua
on:
- pull_request_target:
- branches:
- - main
+ pull_request:
+ branches: [main]
push:
- branches:
- - main
+ branches: [main]
jobs:
- stylua-check:
- name: Stylua Check
+ stylua:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- - name: Checkout Code
- uses: actions/checkout@v2
- with:
- ref: ${{ github.event.pull_request.head.sha }}
- - name: Stylua Check
- uses: JohnnyMorganz/stylua-action@v3
+ - uses: actions/checkout@v4
+ - uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 13566b8..0000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# Default ignored files
-/shelf/
-/workspace.xml
-# Editor-based HTTP Client requests
-/httpRequests/
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
deleted file mode 100644
index b4cde64..0000000
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
deleted file mode 100644
index 105ce2d..0000000
--- a/.idea/inspectionProfiles/profiles_settings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index a6218fe..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 35eb1dd..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.luacheckrc b/.luacheckrc
new file mode 100644
index 0000000..8701434
--- /dev/null
+++ b/.luacheckrc
@@ -0,0 +1,20 @@
+-- Neovim globals and std
+std = "lua51+vim"
+
+-- Globals provided by Neovim
+read_globals = {
+ "vim",
+}
+
+-- Ignore max line length warnings
+ignore = {
+ "631", -- max_line_length
+}
+
+-- Don't report unused self arguments in methods
+self = false
+
+-- Exclude third-party code
+exclude_files = {
+ "lua/custom/plugins/lazy.lua",
+}