From 8fcca13a153160c4941a596cb9b11a2f1a64dc9f Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 30 Apr 2023 21:57:41 +0200 Subject: Options for lua lsp --- lua/plugins/lsp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index a4127e3..6c40c9c 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -169,17 +169,17 @@ local servers = { settings = { Lua = { runtime = { - -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim) version = "LuaJIT", + path = vim.split(package.path, ';'), }, diagnostics = { - -- Get the language server to recognize the `vim` global + enable = true, globals = { "vim" }, }, workspace = { - -- Make the server aware of Neovim runtime files, maxPreload = 2000, preloadFileSize = 50000, + checkThirdParty = false, }, }, }, -- cgit v1.2.3