fix(mason): conform to v2 changes

This commit is contained in:
Iordanis Petkakis 2025-05-08 20:17:39 +03:00
parent cb223553ff
commit 8a52e1bf75
24 changed files with 84 additions and 54 deletions

View file

@ -43,7 +43,7 @@ return {
-- Ensure Rust debugger is installed
{
"williamboman/mason.nvim",
"mason-org/mason.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
@ -111,7 +111,7 @@ return {
},
config = function(_, opts)
if LazyVim.has("mason.nvim") then
local package_path = require("mason-registry").get_package("codelldb"):get_install_path()
local package_path = LazyVim.get_pkg_path("codelldb")
local codelldb = package_path .. "/extension/adapter/codelldb"
local library_path = package_path .. "/extension/lldb/lib/liblldb.dylib"
local uname = io.popen("uname"):read("*l")