mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
fix(lsp): fix lookup of boolean values in workspace/configuration (#18026)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user