aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-12-01 13:01:51 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-12-02 11:12:18 +0100
commit9b89ba5f158f73779cd58d0bb2783dfb40b28b0e (patch)
treed35c60d499f9866c6f0ad9298f4ceea26e83eb1d /.github
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar
nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar.gz
nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar.bz2
nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar.lz
nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar.xz
nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.tar.zst
nvim-lspconfig-9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.zip
refactor: replace all instances of vim.uv with vim.loop
We still support neovim 0.9 currently, so we can't use vim.uv. Also add a check so we don't accidentally reintroduce it.
Diffstat (limited to '.github')
-rw-r--r--.github/ci/run_sanitizer.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/ci/run_sanitizer.sh b/.github/ci/run_sanitizer.sh
index 90a6b01a..93049a07 100644
--- a/.github/ci/run_sanitizer.sh
+++ b/.github/ci/run_sanitizer.sh
@@ -22,3 +22,12 @@ if git diff --pickaxe-all -U0 -G "${SEARCH_PATTERN}" "${REF_BRANCH}" "${PR_BRANC
echo 'Do not use deprecated util functions: '"${SEARCH_PATTERN}"
exit 1
fi
+
+SEARCH_PATTERN='(vim\.uv)'
+
+if git diff --pickaxe-all -U0 -G "${SEARCH_PATTERN}" "${REF_BRANCH}" "${PR_BRANCH}" -- '*.lua' | grep -Ev '\.lua$' | grep -E "^\+.*${SEARCH_PATTERN}" ; then
+ echo
+ echo 'Do not use modules that are too new: '"${SEARCH_PATTERN}"
+ echo 'Consult README to check the minimum supported neovim version.'
+ exit 1
+fi