removed no-longer-needed omnisharp hack
This commit is contained in:
parent
068bd7f139
commit
481be6e47b
|
@ -5,21 +5,6 @@ local lspcap = require('cmp_nvim_lsp')
|
||||||
.default_capabilities(vim.lsp.protocol.make_client_capabilities())
|
.default_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||||
local lspatt = function(client, bufnr)
|
local lspatt = function(client, bufnr)
|
||||||
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||||
-- bug workaround for omnisharp https://github.com/OmniSharp/omnisharp-roslyn/issues/2483
|
|
||||||
if client.name == "omnisharp" then
|
|
||||||
local function toSnakeCase(str)
|
|
||||||
return string.gsub(str, "%s*[- ]%s*", "_")
|
|
||||||
end
|
|
||||||
|
|
||||||
local tokenModifiers = client.server_capabilities.semanticTokensProvider.legend.tokenModifiers
|
|
||||||
for i, v in ipairs(tokenModifiers) do
|
|
||||||
tokenModifiers[i] = toSnakeCase(v)
|
|
||||||
end
|
|
||||||
local tokenTypes = client.server_capabilities.semanticTokensProvider.legend.tokenTypes
|
|
||||||
for i, v in ipairs(tokenTypes) do
|
|
||||||
tokenTypes[i] = toSnakeCase(v)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- color scheme setup
|
-- color scheme setup
|
||||||
|
|
Loading…
Reference in New Issue