From b9264d8424061614f9b6d4f8f4b1efcd6a1116cb Mon Sep 17 00:00:00 2001 From: dlond Date: Wed, 21 May 2025 06:13:04 +1200 Subject: [PATCH] adding lsp server options pt 8 --- lua/custom/plugins/lsp.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/custom/plugins/lsp.lua b/lua/custom/plugins/lsp.lua index 5adb541c..abb8054c 100644 --- a/lua/custom/plugins/lsp.lua +++ b/lua/custom/plugins/lsp.lua @@ -81,8 +81,6 @@ return { } print('DEBUG: servers table content: ' .. vim.inspect(servers)) - local _ = next(servers) - print 'DEBUG: Called next(servers) once.' -- print('DEBUG: next(servers) returned key: ' .. tostring(first_key) .. ', value: ' .. vim.inspect(first_value)) -- if first_key == nil then -- print "DEBUG: The 'servers' table is effectively empty for iteration with pairs()." @@ -92,7 +90,7 @@ return { -- Iterate through the defined servers list and set them up with lspconfig print 'LSPConfig: Iterating servers...' - for server_name, server_config_override in ipairs(servers) do + for server_name, server_config_override in pairs(servers) do print('Attempting to set up LSP server: ' .. server_name) -- Debug print local server_ops = { capabilities = capabilities,