From 4cd4db3504a104146475db85862f29044f35e5c5 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Wed, 22 Apr 2026 14:37:38 +0200 Subject: [PATCH] pick the solution file with the shortest path string automatically did this so that whichever solution file is in pwd will be picked --- nvim/.config/nvim/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index ad41558..379ba1c 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -536,6 +536,16 @@ require'lazy'.setup{ --{{{1 }, { "seblyng/roslyn.nvim", --{{{2 opts = { + ---function to pick which .sln file to use when opening a cs file + ---@param targets string[] + choose_target=function (targets) + if targets == nil then return end + if #targets == 0 then return end + table.sort(targets, function(a, b) + return #a < #b + end) + return targets[1] + end }, }, { 'neovim/nvim-lspconfig', --{{{2