aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Giordana <juangiordana@gmail.com>2026-01-21 10:13:47 -0300
committerGitHub <noreply@github.com>2026-01-21 21:13:47 +0800
commit2f0dd28800c87c9780cde01782945eabfe7b34dd (patch)
treef55f87d4076d2f00c7b1ddac699d8a4172f95973
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-2f0dd28800c87c9780cde01782945eabfe7b34dd.tar
nvim-lspconfig-2f0dd28800c87c9780cde01782945eabfe7b34dd.tar.gz
nvim-lspconfig-2f0dd28800c87c9780cde01782945eabfe7b34dd.tar.bz2
nvim-lspconfig-2f0dd28800c87c9780cde01782945eabfe7b34dd.tar.lz
nvim-lspconfig-2f0dd28800c87c9780cde01782945eabfe7b34dd.tar.xz
nvim-lspconfig-2f0dd28800c87c9780cde01782945eabfe7b34dd.tar.zst
nvim-lspconfig-2f0dd28800c87c9780cde01782945eabfe7b34dd.zip
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. https://github.com/neovim/nvim-lspconfig/blob/92ee7d42320edfbb81f3cad851314ab197fa324a/lua/lspconfig/configs/lua_ls.lua https://luals.github.io/wiki/settings/#workspacelibrary
-rw-r--r--lsp/lua_ls.lua18
1 files changed, 8 insertions, 10 deletions
diff --git a/lsp/lua_ls.lua b/lsp/lua_ls.lua
index 97bb6f5e..e5bed3f6 100644
--- a/lsp/lua_ls.lua
+++ b/lsp/lua_ls.lua
@@ -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 = {},
+--- },
--- })
--- ```
---