From 6e65c34e280b1e7428d3c753088b9569f4a65e57 Mon Sep 17 00:00:00 2001 From: seocamo Date: Sun, 28 Mar 2021 03:12:25 +0200 Subject: Fix for the popup with max preload size is low (#175) Fix for the popup with max file preload size is to low, i dig into the code of sumneko and you need to add maxPreload = 10000 to workspace and the number is in kb --- lua/lsp/lua-ls.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/lsp/lua-ls.lua') diff --git a/lua/lsp/lua-ls.lua b/lua/lsp/lua-ls.lua index 36df2b49..775eb92f 100644 --- a/lua/lsp/lua-ls.lua +++ b/lua/lsp/lua-ls.lua @@ -19,7 +19,8 @@ require'lspconfig'.sumneko_lua.setup { }, workspace = { -- Make the server aware of Neovim runtime files - library = {[vim.fn.expand('$VIMRUNTIME/lua')] = true, [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true} + library = {[vim.fn.expand('$VIMRUNTIME/lua')] = true, [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true}, + maxPreload = 10000 } } } -- cgit v1.2.3