Skip to content

Commit

Permalink
fix(nvim): don't crash if there is no ensure_installed
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Dec 27, 2024
1 parent cf55087 commit 56d0b6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nvim-fredrik/lua/fredrik/plugins/core/mason.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ return {
-- handle opts.ensure_installed
local registry = require("mason-registry")
registry.refresh(function()
if opts.ensure_installed == nil then
return
end

for _, pkg_name in ipairs(opts.ensure_installed) do
-- print("loading " .. pkg_name)
local pkg = registry.get_package(pkg_name)
Expand Down

0 comments on commit 56d0b6a

Please sign in to comment.