summaryrefslogtreecommitdiff
path: root/lua/lsp/lua-ls.lua
diff options
context:
space:
mode:
authorseocamo <[email protected]>2021-03-28 03:12:25 +0200
committerGitHub <[email protected]>2021-03-27 21:12:25 -0400
commit6e65c34e280b1e7428d3c753088b9569f4a65e57 (patch)
tree4c3a713242bcfc1211f58609eafaf443577f69b1 /lua/lsp/lua-ls.lua
parent7565d9397fea4c59eecd0ccc0b49d6c1727e6aea (diff)
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
Diffstat (limited to 'lua/lsp/lua-ls.lua')
-rw-r--r--lua/lsp/lua-ls.lua3
1 files changed, 2 insertions, 1 deletions
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
}
}
}