mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-14 19:34:36 +02:00
Improve mason deps' assets resolution
This commit is contained in:
parent
759e410984
commit
060b7ca704
3 changed files with 10 additions and 9 deletions
|
@ -111,13 +111,9 @@ return {
|
|||
},
|
||||
config = function(_, opts)
|
||||
if LazyVim.has("mason.nvim") then
|
||||
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")
|
||||
if uname == "Linux" then
|
||||
library_path = package_path .. "/extension/lldb/lib/liblldb.so"
|
||||
end
|
||||
local codelldb = vim.fn.exepath("codelldb")
|
||||
local codelldb_lib_ext = io.popen("uname"):read("*l") == "Linux" and ".so" or ".dylib"
|
||||
local library_path = vim.fn.expand("$MASON/opt/lldb/lib/liblldb" .. codelldb_lib_ext)
|
||||
opts.dap = {
|
||||
adapter = require("rustaceanvim.config").get_codelldb_adapter(codelldb, library_path),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue