Skip to content

Commit fa4e9a5

Browse files
Install specific versions of lsps
1 parent 08692d7 commit fa4e9a5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

nvim/lua/installer.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
1315
end

nvim/lua/plugins/csharp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ end
4141
local 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
})

0 commit comments

Comments
 (0)