sumneko_lua.lua 457 B

12345678910111213141516171819
  1. local opts = {
  2. settings = {
  3. Lua = {
  4. diagnostics = {
  5. globals = { "vim", "lvim" },
  6. },
  7. workspace = {
  8. library = {
  9. [require("lvim.utils").join_paths(get_runtime_dir(), "lvim", "lua")] = true,
  10. [vim.fn.expand "$VIMRUNTIME/lua"] = true,
  11. [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true,
  12. },
  13. maxPreload = 100000,
  14. preloadFileSize = 10000,
  15. },
  16. },
  17. },
  18. }
  19. return opts