From f4a70d82b5b293371e716d65a0d337b689c34b42 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Sat, 29 Nov 2025 11:28:43 +1100 Subject: [PATCH] chore: set runtime.version 5.1 in .luarc.json --- .luarc.json | 1 + scripts/luals-check.sh | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.luarc.json b/.luarc.json index 83ba413ca7c..6a2d3d63eb2 100644 --- a/.luarc.json +++ b/.luarc.json @@ -1,5 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json", + "runtime.version": "Lua 5.1", "workspace": { "library": [ "$VIMRUNTIME/lua/vim", diff --git a/scripts/luals-check.sh b/scripts/luals-check.sh index 9d1e31f395f..5c611b18b98 100755 --- a/scripts/luals-check.sh +++ b/scripts/luals-check.sh @@ -27,12 +27,7 @@ case "${1}" in ;; *) - # Add runtime.version for strict neovim baseline 5.1 - # It is not set normally, to prevent luals loading 5.1 and 5.x, resulting in both versions being chosen on vim.lsp.buf.definition - jq \ - '."runtime.version" = "Lua 5.1"' \ - "${PWD}/.luarc.json" > "${FILE_LUARC}" - + cp "${PWD}/.luarc.json" "${FILE_LUARC}" ;; esac