removed no-longer-needed omnisharp hack

This commit is contained in:
Rudis Muiznieks 2023-12-15 08:17:32 -06:00
parent 068bd7f139
commit 481be6e47b
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 0 additions and 15 deletions

View File

@ -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