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