mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-10 17:34:34 +02:00
This commit is contained in:
parent
a910b871d1
commit
6045a52d82
1 changed files with 8 additions and 2 deletions
|
@ -51,8 +51,14 @@ return {
|
||||||
local codelldb = mason_registry.get_package("codelldb")
|
local codelldb = mason_registry.get_package("codelldb")
|
||||||
local extension_path = codelldb:get_install_path() .. "/extension/"
|
local extension_path = codelldb:get_install_path() .. "/extension/"
|
||||||
local codelldb_path = extension_path .. "adapter/codelldb"
|
local codelldb_path = extension_path .. "adapter/codelldb"
|
||||||
local liblldb_path = vim.fn.has("mac") == 1 and extension_path .. "lldb/lib/liblldb.dylib"
|
local liblldb_path = ""
|
||||||
or extension_path .. "lldb/lib/liblldb.so"
|
if vim.loop.os_uname().sysname:find("Windows") then
|
||||||
|
liblldb_path = extension_path .. "lldb\\bin\\liblldb.dll"
|
||||||
|
elseif vim.fn.has("mac") == 1 then
|
||||||
|
liblldb_path = extension_path .. "lldb/lib/liblldb.dylib"
|
||||||
|
else
|
||||||
|
liblldb_path = extension_path .. "lldb/lib/liblldb.so"
|
||||||
|
end
|
||||||
adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path)
|
adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path)
|
||||||
end
|
end
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue