From 33b29b77630b91ba6fbf822f9f2035526db2f07f Mon Sep 17 00:00:00 2001 From: Scott McKendry <39483124+scottmckendry@users.noreply.github.com> Date: Wed, 4 Sep 2024 20:09:36 +1200 Subject: [PATCH] wip - replace omnisharp with roslyn server :wrench: --- nvim/lua/plugins/lspconfig.lua | 7 ------- nvim/lua/plugins/roslyn.lua | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 nvim/lua/plugins/roslyn.lua diff --git a/nvim/lua/plugins/lspconfig.lua b/nvim/lua/plugins/lspconfig.lua index cd6beb8..79ad0ad 100644 --- a/nvim/lua/plugins/lspconfig.lua +++ b/nvim/lua/plugins/lspconfig.lua @@ -66,13 +66,6 @@ return { cmd = { bicep_path }, }) - -- C# - local omnisharp_path = vim.fn.stdpath("data") .. "/mason/packages/omnisharp/libexec/omnisharp.dll" - require("lspconfig").omnisharp.setup({ - cmd = { "dotnet", omnisharp_path }, - enable_ms_build_load_projects_on_demand = true, - }) - -- Lua require("lspconfig").lua_ls.setup({ on_init = function(client) diff --git a/nvim/lua/plugins/roslyn.lua b/nvim/lua/plugins/roslyn.lua new file mode 100644 index 0000000..7023178 --- /dev/null +++ b/nvim/lua/plugins/roslyn.lua @@ -0,0 +1,7 @@ +return { + "seblj/roslyn.nvim", + ft = { "cs" }, + -- TODO: Add build function that handles roslyn install until Mason supports it: + -- https://github.com/mason-org/mason-registry/pull/6330 + opts = {}, +}