docs(lua_ls): correct nested table workspace.library setting (#4285)

Correct nested table `workspace.library` setting.

`lua_ls` `workspace.library` setting expects an *1D string array*
`Array<string>` but the suggested documentation example sets a **2D
string array**, a nested table, instead.

92ee7d4232/lua/lspconfig/configs/lua_ls.lua
https://luals.github.io/wiki/settings/#workspacelibrary
This commit is contained in:
Juan Giordana 2026-01-21 10:13:47 -03:00 committed by GitHub
parent 92ee7d4232
commit 2f0dd28800
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,25 +41,23 @@
--- workspace = {
--- checkThirdParty = false,
--- library = {
--- vim.env.VIMRUNTIME
--- vim.env.VIMRUNTIME,
--- -- Depending on the usage, you might want to add additional paths
--- -- here.
--- -- '${3rd}/luv/library'
--- -- '${3rd}/busted/library'
--- }
--- -- '${3rd}/luv/library',
--- -- '${3rd}/busted/library',
--- },
--- -- Or pull in all of 'runtimepath'.
--- -- NOTE: this is a lot slower and will cause issues when working on
--- -- your own configuration.
--- -- See https://github.com/neovim/nvim-lspconfig/issues/3189
--- -- library = {
--- -- vim.api.nvim_get_runtime_file('', true),
--- -- }
--- }
--- -- library = vim.api.nvim_get_runtime_file('', true),
--- },
--- })
--- end,
--- settings = {
--- Lua = {}
--- }
--- Lua = {},
--- },
--- })
--- ```
---