From 908897fd234d321e4586fd02a748c559f76f130d Mon Sep 17 00:00:00 2001 From: "neovim-backports[bot]" <175700243+neovim-backports[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 12:03:33 -0400 Subject: [PATCH] backport: fix(luarc.json): increase `workspace.preloadFileSize` (#39716) Problem: When using the default `lua_ls` config from nvim-lspconfig, the following info message gets printed: ``` LSP[lua_ls] Too large file: src/nvim/eval.lua skipped. The currently set size limit is: 500 KB, and the file size is: 511.133 KB. ``` Solution: Set `workspace.preloadFileSize` to 1000 KB instead of the default 500 KB. (cherry picked from commit 5d1910e1e0f7e5044c91a54cb8bf2c98a96cb5c1) Co-authored-by: Olivia Kinnear --- .luarc.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.luarc.json b/.luarc.json index 87eaa43928..56d397f28c 100644 --- a/.luarc.json +++ b/.luarc.json @@ -9,6 +9,7 @@ "build", "test" ], + "preloadFileSize": 1000, "checkThirdParty": "Disable" }, "diagnostics": {