From 4877cb4e0b886fd14d487eb970dac48209f65540 Mon Sep 17 00:00:00 2001 From: Long Nguyen Date: Wed, 17 Sep 2025 12:18:53 -0500 Subject: [PATCH] added roslyn csharp lsp --- lua/plugins/lazy.lua | 10 ++++++++++ lua/plugins/lsp_setup.lua | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lua/plugins/lazy.lua b/lua/plugins/lazy.lua index 011bfae..5b6029a 100644 --- a/lua/plugins/lazy.lua +++ b/lua/plugins/lazy.lua @@ -108,6 +108,16 @@ function M.install_plugins() ft = "lua", -- only load on lua files opts = {}, }, + + -- CSHARP + { + "seblyng/roslyn.nvim", + ---@module 'roslyn.config' + ---@type RoslynNvimConfig + opts = { + -- your configuration comes here; leave empty for default settings + }, + }, }, }) end diff --git a/lua/plugins/lsp_setup.lua b/lua/plugins/lsp_setup.lua index 4f67c12..83997ab 100644 --- a/lua/plugins/lsp_setup.lua +++ b/lua/plugins/lsp_setup.lua @@ -138,7 +138,12 @@ cmp.setup({ mapping = cmp.mapping.preset.insert(mapping), }) -require("mason").setup() +require("mason").setup({ + registries = { + "github:mason-org/mason-registry", + "github:Crashdummyy/mason-registry", + }, +}) local html_filetypes = { "html", "templ", "htmldjango" } @@ -172,4 +177,5 @@ vim.lsp.enable({ "templ", "ts_ls", "zls", + "roslyn", })