[fix] - Fixing Coc symbol parsing bug

This commit is contained in:
Baptiste Zorzi
2024-01-11 14:06:55 +01:00
parent 8c6b11e4c2
commit 746b8a6206

View File

@@ -76,7 +76,7 @@ function M.request_symbols(on_symbols, opts)
vim.fn.call('CocActionAsync', { vim.fn.call('CocActionAsync', {
'documentSymbols', 'documentSymbols',
function(_, symbols) function(_, symbols)
on_symbols({ [1000000] = { result = convert_symbols(symbols) } }, opts) on_symbols(convert_symbols(symbols), opts)
end, end,
}) })
end end