Skip to content

Commit

Permalink
update lua_ls settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhao committed Jul 30, 2024
1 parent e815de2 commit 719fbfc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/config/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 719fbfc

Please sign in to comment.