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

@@ -1950,8 +1950,8 @@ end
function M.lookup_section(settings, section)
for part in vim.gsplit(section, '.', true) do
settings = settings[part]
if not settings then
return
if settings == nil then
return vim.NIL
end
end
return settings