feat(nvim): support C# decompilation
This commit is contained in:
parent
bb759397ac
commit
d83caa0c6a
@ -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,
|
||||
})
|
||||
|
@ -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({})
|
||||
|
5
dots/.omnisharp/omnisharp.json
Normal file
5
dots/.omnisharp/omnisharp.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"RoslynExtensionsOptions": {
|
||||
"enableDecompilationSupport": true
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user