fix(lsp): fix lookup of boolean values in workspace/configuration (#18026)

This commit is contained in:
Fredrik Ekre
2022-04-15 11:12:41 +02:00
committed by GitHub
parent 8486c87e58
commit 6160973f36
4 changed files with 9 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ M['workspace/configuration'] = function(_, result, ctx)
local response = {}
for _, item in ipairs(result.items) do
if item.section then
local value = util.lookup_section(client.config.settings, item.section) or vim.NIL
local value = util.lookup_section(client.config.settings, item.section)
-- For empty sections with no explicit '' key, return settings as is
if value == vim.NIL and item.section == '' then
value = client.config.settings or vim.NIL