vim: add plugin 'Hoffs/omnisharp-extended-lsp.nvim'
This commit is contained in:
parent
d4660c3da4
commit
0f3fc2ba00
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,7 @@ local M = { 'neovim/nvim-lspconfig' }
|
||||||
M.dependencies = {
|
M.dependencies = {
|
||||||
'williamboman/mason.nvim',
|
'williamboman/mason.nvim',
|
||||||
'williamboman/mason-lspconfig.nvim',
|
'williamboman/mason-lspconfig.nvim',
|
||||||
|
'Hoffs/omnisharp-extended-lsp.nvim',
|
||||||
}
|
}
|
||||||
|
|
||||||
M.config = function()
|
M.config = function()
|
||||||
|
@ -77,6 +78,9 @@ M.config = function()
|
||||||
end,
|
end,
|
||||||
omnisharp = function()
|
omnisharp = function()
|
||||||
require('lspconfig').omnisharp.setup(extend(opts, {
|
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.
|
-- Show unimported types and add`using` directives.
|
||||||
enable_import_completion = true,
|
enable_import_completion = true,
|
||||||
|
|
||||||
|
@ -85,6 +89,10 @@ M.config = function()
|
||||||
|
|
||||||
-- Don't include preview versions of the .NET SDK.
|
-- Don't include preview versions of the .NET SDK.
|
||||||
sdk_include_prereleases = false,
|
sdk_include_prereleases = false,
|
||||||
|
|
||||||
|
handlers = {
|
||||||
|
['textDocument/definition'] = require('omnisharp_extended').handler,
|
||||||
|
},
|
||||||
}))
|
}))
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue