mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-28 05:54:23 +02:00
fix(rust): let rustaceanvim handle codelldb discovery
rustaceanvim handles more cases
This commit is contained in:
parent
3e8fddcd54
commit
e72896dae8
1 changed files with 0 additions and 12 deletions
|
@ -110,18 +110,6 @@ return {
|
|||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
if LazyVim.has("mason.nvim") then
|
||||
local package_path = require("mason-registry").get_package("codelldb"):get_install_path()
|
||||
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
|
||||
opts.dap = {
|
||||
adapter = require("rustaceanvim.config").get_codelldb_adapter(codelldb, library_path),
|
||||
}
|
||||
end
|
||||
vim.g.rustaceanvim = vim.tbl_deep_extend("keep", vim.g.rustaceanvim or {}, opts or {})
|
||||
if vim.fn.executable("rust-analyzer") == 0 then
|
||||
LazyVim.error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue