vim: add plugin 'Hoffs/omnisharp-extended-lsp.nvim'

This commit is contained in:
Fernando Schauenburg 2023-09-01 08:51:13 +02:00
parent d4660c3da4
commit 0f3fc2ba00

View file

@ -3,6 +3,7 @@ local M = { 'neovim/nvim-lspconfig' }
M.dependencies = {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'Hoffs/omnisharp-extended-lsp.nvim',
}
M.config = function()
@ -77,6 +78,9 @@ M.config = function()
end,
omnisharp = function()
require('lspconfig').omnisharp.setup(extend(opts, {
-- Use .editoconfig for code style, naming convention and analyzer settings.
enable_editorconfig_support = true,
-- Show unimported types and add`using` directives.
enable_import_completion = true,
@ -85,6 +89,10 @@ M.config = function()
-- Don't include preview versions of the .NET SDK.
sdk_include_prereleases = false,
handlers = {
['textDocument/definition'] = require('omnisharp_extended').handler,
},
}))
end,
},