feat(nvim): support C# decompilation

This commit is contained in:
Price Hiller 2022-09-04 01:18:26 -05:00
parent bb759397ac
commit d83caa0c6a
3 changed files with 27 additions and 3 deletions

View File

@ -239,10 +239,28 @@ lspconfig.yamlls.setup({
on_attach = on_attach,
})
lspconfig.csharp_ls.setup({
handlers = {
["textDocument/definition"] = require("csharpls_extended").handler,
-- lspconfig.csharp_ls.setup({
-- handlers = {
-- ["textDocument/definition"] = require("csharpls_extended").handler,
-- },
-- capabilities = lsp_capabilities,
-- on_attach = on_attach,
-- })
lspconfig.omnisharp.setup({
cmd = {
os.getenv("HOME") .. ".local/share/nvim/mason/bin/omnisharp",
"--languageserver",
"--hostPID",
tostring(vim.fn.getpid()),
},
handlers = {
["textDocument/definition"] = require("omnisharp_extended").handler,
},
enable_import_completion = true,
enable_roslyn_analyzers = true,
organize_imports_on_format = true,
capabilities = lsp_capabilities,
on_attach = on_attach,
})

View File

@ -271,6 +271,7 @@ return packer.startup({
"nanotee/sqls.nvim",
"williamboman/mason.nvim",
"simrat39/rust-tools.nvim",
"Hoffs/omnisharp-extended-lsp.nvim",
},
config = function()
require("mason").setup({})

View File

@ -0,0 +1,5 @@
{
"RoslynExtensionsOptions": {
"enableDecompilationSupport": true
}
}