pick the solution file with the shortest path string automatically
did this so that whichever solution file is in pwd will be picked
This commit is contained in:
@@ -536,6 +536,16 @@ require'lazy'.setup{ --{{{1
|
|||||||
},
|
},
|
||||||
{ "seblyng/roslyn.nvim", --{{{2
|
{ "seblyng/roslyn.nvim", --{{{2
|
||||||
opts = {
|
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
|
{ 'neovim/nvim-lspconfig', --{{{2
|
||||||
|
|||||||
Reference in New Issue
Block a user