From 0f3fc2ba00d8b98516d3da62005fff7b0901f43e Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 1 Sep 2023 08:51:13 +0200 Subject: [PATCH] vim: add plugin 'Hoffs/omnisharp-extended-lsp.nvim' --- config/nvim/lua/fschauen/plugins/lsp.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/nvim/lua/fschauen/plugins/lsp.lua b/config/nvim/lua/fschauen/plugins/lsp.lua index bedd772..bea87fb 100644 --- a/config/nvim/lua/fschauen/plugins/lsp.lua +++ b/config/nvim/lua/fschauen/plugins/lsp.lua @@ -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, },