fix(neovim): add workaround for omnisharp issues
This commit is contained in:
parent
94518025ba
commit
b46461a872
|
@ -35,6 +35,18 @@ local on_attach = function(client, bufnr)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- workaround for https://github.com/OmniSharp/omnisharp-roslyn/issues/2483
|
||||||
|
if client.name == "omnisharp" then
|
||||||
|
local tokenModifiers = client.server_capabilities.semanticTokensProvider.legend.tokenModifiers
|
||||||
|
for i, v in ipairs(tokenModifiers) do
|
||||||
|
tokenModifiers[i] = string.gsub(v, "%s*[- ]%s*", "_")
|
||||||
|
end
|
||||||
|
local tokenTypes = client.server_capabilities.semanticTokensProvider.legend.tokenTypes
|
||||||
|
for i, v in ipairs(tokenTypes) do
|
||||||
|
tokenTypes[i] = string.gsub(v, "%s*[- ]%s*", "_")
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local config = require("lspconfig")
|
local config = require("lspconfig")
|
||||||
|
|
Loading…
Reference in a new issue