chore: replace submodule with bootstrap script for test dependency

Remove the .tests/vendor/plenary.nvim git submodule so Neovim plugin
managers (lazy.nvim, etc.) don't pull it during installation. Instead,
run_tests.ps1 and run_checks.ps1 clone plenary.nvim on demand if it's
not present. The .gitea CI workflow also gets its own bootstrap step.
Add .gitignore to exclude the bootstrapped vendor directory.
This commit is contained in:
Stevan Freeborn
2026-07-06 20:19:54 -05:00
parent 6ac6ff6dae
commit ef48cd178f
6 changed files with 19 additions and 4 deletions
+2
View File
@@ -31,5 +31,7 @@ jobs:
run: stylua --check . run: stylua --check .
- name: Lint - name: Lint
run: lua-language-server --check=. run: lua-language-server --check=.
- name: Bootstrap plenary.nvim
run: git clone --depth 1 https://github.com/nvim-lua/plenary.nvim .tests/vendor/plenary.nvim
- name: Test - name: Test
run: nvim --headless -c "PlenaryBustedDirectory tests/watchexec/ {minimal_init = 'tests/minimal_init.lua'}" -c "q" run: nvim --headless -c "PlenaryBustedDirectory tests/watchexec/ {minimal_init = 'tests/minimal_init.lua'}" -c "q"
+1
View File
@@ -0,0 +1 @@
.tests/vendor/
-3
View File
@@ -1,3 +0,0 @@
[submodule ".tests/vendor/plenary.nvim"]
path = .tests/vendor/plenary.nvim
url = https://github.com/nvim-lua/plenary.nvim
+8
View File
@@ -21,6 +21,14 @@ if ($LASTEXITCODE -ne 0) {
Write-Host "PASS" -ForegroundColor Green Write-Host "PASS" -ForegroundColor Green
$plenaryPath = ".tests/vendor/plenary.nvim"
if (-not (Test-Path $plenaryPath)) {
Write-Host "Bootstrapping plenary.nvim for tests..." -ForegroundColor Yellow
New-Item -ItemType Directory -Path ".tests/vendor" -Force | Out-Null
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim $plenaryPath
}
Write-Host "`n=== Test ===" Write-Host "`n=== Test ==="
nvim --headless -c "PlenaryBustedDirectory tests/watchexec/ {minimal_init = 'tests/minimal_init.lua'}" nvim --headless -c "PlenaryBustedDirectory tests/watchexec/ {minimal_init = 'tests/minimal_init.lua'}"
+8
View File
@@ -1 +1,9 @@
$plenaryPath = ".tests/vendor/plenary.nvim"
if (-not (Test-Path $plenaryPath)) {
Write-Host "Bootstrapping plenary.nvim for tests..." -ForegroundColor Yellow
New-Item -ItemType Directory -Path ".tests/vendor" -Force | Out-Null
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim $plenaryPath
}
nvim --headless -c "PlenaryBustedDirectory tests/watchexec/ {minimal_init = 'tests/minimal_init.lua'}" nvim --headless -c "PlenaryBustedDirectory tests/watchexec/ {minimal_init = 'tests/minimal_init.lua'}"