issue #266 Error when opening Go files

pull/268/head
ray-x 1 year ago
parent d88d393d09
commit ab42ffc5c6

@ -92,11 +92,16 @@ M.defaults = function()
and not client.server_capabilities.semanticTokensProvider and not client.server_capabilities.semanticTokensProvider
then then
local semantic = client.config.capabilities.textDocument.semanticTokens local semantic = client.config.capabilities.textDocument.semanticTokens
client.server_capabilities.semanticTokensProvider = { if semantic then
full = true, client.server_capabilities.semanticTokensProvider = {
legend = { tokenModifiers = semantic.tokenModifiers, tokenTypes = semantic.tokenTypes }, full = true,
range = true, legend = {
} tokenModifiers = semantic.tokenModifiers,
tokenTypes = semantic.tokenTypes,
},
range = true,
}
end
end end
end, end,
root_dir = function(fname) root_dir = function(fname)

Loading…
Cancel
Save