Skip to content

Commit

Permalink
fix(scripts): manually set registries before interacting with mason-r…
Browse files Browse the repository at this point in the history
…egistry (#161)
  • Loading branch information
williamboman committed Feb 25, 2023
1 parent 93e58e1 commit 3f9c0ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/lua/mason-scripts/mason-lspconfig/generate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ end
local function ensure_valid_package_name_translations()
local server_mappings = require "mason-lspconfig.mappings.server"
local registry = require "mason-registry"
require("mason-registry.sources").set_registries {
"lua:mason-registry.index",
}

for lspconfig_server, mason_package in pairs(server_mappings.lspconfig_to_package) do
local server_config = lspconfig[lspconfig_server]
Expand Down

0 comments on commit 3f9c0ea

Please sign in to comment.