File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,8 +6,10 @@ local function install(packages)
66
77 for _ , pkg in ipairs (packages ) do
88 local name = pkg :gsub (" @.*$" , " " )
9+ local version = pkg :match (" @(.+)$" )
910 if not registry .is_installed (name ) then
10- registry .get_package (name ):install ()
11+ local opts = version and { version = version } or nil
12+ registry .get_package (name ):install (opts )
1113 end
1214 end
1315end
Original file line number Diff line number Diff line change 4141local function install_lsp_and_dap_if_needed ()
4242 require (" installer" ).install_if_missing ({
4343 -- Avoid WSL bug in file watching in dotnet runtime <https://github.com/seblyng/roslyn.nvim/issues/303#issuecomment-4144530656>
44- " roslyn@5.4.0-2.26175.10" , -- LSP Needs to be manually installed from the Mason gui?
44+ " roslyn@5.4.0-2.26175.10" ,
4545 " html-lsp" , -- Roslyn uses this for Razor/CSHTML cohosting
4646 " netcoredbg" , -- DAP
4747 })
You can’t perform that action at this time.
0 commit comments