Skip to content

Commit f4a70d8

Browse files
committed
chore: set runtime.version 5.1 in .luarc.json
1 parent 3fb91e1 commit f4a70d8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.luarc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
3+
"runtime.version": "Lua 5.1",
34
"workspace": {
45
"library": [
56
"$VIMRUNTIME/lua/vim",

scripts/luals-check.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ case "${1}" in
2727

2828
;;
2929
*)
30-
# Add runtime.version for strict neovim baseline 5.1
31-
# 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
32-
jq \
33-
'."runtime.version" = "Lua 5.1"' \
34-
"${PWD}/.luarc.json" > "${FILE_LUARC}"
35-
30+
cp "${PWD}/.luarc.json" "${FILE_LUARC}"
3631
;;
3732
esac
3833

0 commit comments

Comments
 (0)