diff --git a/lua/astrocommunity/utility/mason-tool-installer-nvim/init.lua b/lua/astrocommunity/utility/mason-tool-installer-nvim/init.lua index ef5846d18..1c7b80016 100644 --- a/lua/astrocommunity/utility/mason-tool-installer-nvim/init.lua +++ b/lua/astrocommunity/utility/mason-tool-installer-nvim/init.lua @@ -21,21 +21,6 @@ return { end for _, plugin in ipairs { "mason-nvim-dap.nvim", "mason-lspconfig.nvim", "mason-null-ls.nvim" } do for _, target in ipairs(require("astrocore").plugin_opts(plugin).ensure_installed or {}) do - local mappings - if plugin == "mason-lspconfig.nvim" then - mappings = require("mason-lspconfig").get_mappings().lspconfig_to_mason - elseif plugin == "mason-null-ls.nvim" then - mappings = require("mason-null-ls.mappings.source").getPackageFromNullLs - elseif plugin == "mason-nvim-dap.nvim" then - mappings = require("mason-nvim-dap.mappings.source").nvim_dap_to_package - end - if mappings then - if type(mappings) == "table" and mappings[target] then - target = mappings[target] - elseif type(mappings) == "function" and mappings(target) then - target = mappings(target) - end - end if not target_lookup[target] then table.insert(opts.ensure_installed, target) end end end