From ca6cc310e91a2ee7b57e8192edcc774f57914689 Mon Sep 17 00:00:00 2001 From: dlond Date: Wed, 21 May 2025 06:01:33 +1200 Subject: [PATCH] adding lsp server options pt 6 --- lua/custom/plugins/lsp.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/custom/plugins/lsp.lua b/lua/custom/plugins/lsp.lua index 1a5647c7..0a36dc6a 100644 --- a/lua/custom/plugins/lsp.lua +++ b/lua/custom/plugins/lsp.lua @@ -81,6 +81,14 @@ return { } print('DEBUG: servers table content: ' .. vim.inspect(servers)) + local first_key, first_value = next(servers) + 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()." + else + print "DEBUG: The 'servers' table is NOT empty for iteration." + end + -- 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