From da9f0226980163fc158502469cd4d41b9bb01178 Mon Sep 17 00:00:00 2001 From: "Radu C. Martin" Date: Thu, 12 Dec 2024 11:54:21 +0100 Subject: [PATCH] fix: cleanup roslyn config --- lua/config/lazy.lua | 2 +- lua/plugins/roslyn.lua | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 5f0d25a..cac708a 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -44,7 +44,7 @@ require('lazy').setup({ 'neovim/nvim-lspconfig', dependencies = { -- Automatically install LSPs and related tools to stdpath for Neovim - { 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants + { 'williamboman/mason.nvim', config = true, dependencies = { 'seblj/roslyn.nvim' } }, -- NOTE: Must be loaded before dependants 'williamboman/mason-lspconfig.nvim', 'WhoIsSethDaniel/mason-tool-installer.nvim', diff --git a/lua/plugins/roslyn.lua b/lua/plugins/roslyn.lua index 2dd7ce2..6b6795e 100644 --- a/lua/plugins/roslyn.lua +++ b/lua/plugins/roslyn.lua @@ -1,7 +1,12 @@ return { 'seblj/roslyn.nvim', + event = { 'BufReadPre', 'BufNewFile' }, ft = 'cs', opts = { - -- your configuration comes here; leave empty for default settings + filewatching = false, + broad_search = true, + -- ignore_sln = function(sln) + -- return string.match(sln, 'Contactify.sln') ~= nil + -- end, }, }