From 719fbfc1ab6fe0ef4bd5ca0a1ad322ed08eb4c31 Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 30 Jul 2024 23:34:53 +0200 Subject: [PATCH] update lua_ls settings --- lua/config/lsp.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index aac7a90..f43aa58 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -231,11 +231,12 @@ if utils.executable("lua-language-server") then }, workspace = { -- Make the server aware of Neovim runtime files, - -- see also https://github.com/LuaLS/lua-language-server/wiki/Libraries#link-to-workspace . - -- Lua-dev.nvim also has similar settings for lua ls, https://github.com/folke/neodev.nvim/blob/main/lua/neodev/luals.lua . + -- see also https://luals.github.io/wiki/settings/#workspacelibrary library = { vim.env.VIMRUNTIME, fn.stdpath("config"), + -- make lua_ls aware of functions under vim.uv + "${3rd}/luv/library" }, maxPreload = 2000, preloadFileSize = 50000,