aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-04-23 04:48:12 -0700
committerGitHub <noreply@github.com>2025-04-23 04:48:12 -0700
commit5aa0b750f5179282ef99f04d17ad99d7da93f512 (patch)
treee3b2e4aebe73de9151b294a905bf26787e63d1fa /.github
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar
nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar.gz
nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar.bz2
nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar.lz
nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar.xz
nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar.zst
nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.zip
ci(lint): deprecate util.path.is_descendant() on Nvim 0.11+ #3766
Diffstat (limited to '.github')
-rw-r--r--.github/ci/lint.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/ci/lint.sh b/.github/ci/lint.sh
index ccd23b5b..1b8647ed 100644
--- a/.github/ci/lint.sh
+++ b/.github/ci/lint.sh
@@ -45,6 +45,15 @@ _check_exec_cmd() {
fi
}
+# Disallow util functions in Nvim 0.11+ (lsp/) configs.
+_check_deprecated_in_nvim_0_11() {
+ if git grep -P 'is_descendant' -- 'lsp/*.lua' ; then
+ echo
+ echo 'Use vim.fs.relpath() instead of util.path.is_descendant()'
+ exit 1
+ fi
+}
+
_check_deprecated_utils() {
# checks for added lines that contain search pattern and prints them
SEARCH_PATTERN='(path\.dirname|fn\.cwd)'
@@ -70,4 +79,5 @@ _check_cmd_buflocal
_check_brief_placement
_check_lsp_cmd_prefix
_check_exec_cmd
+_check_deprecated_in_nvim_0_11
_check_deprecated_utils