Bläddra i källkod

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
seocamo 4 år sedan
förälder
incheckning
6e65c34e28
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      lua/lsp/lua-ls.lua

+ 2 - 1
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
             }
         }
     }