25 lines
604 B
Lua
25 lines
604 B
Lua
local M = { "mrcjkb/rustaceanvim" }
|
|
|
|
M.build = ":MasonInstall codelldb"
|
|
|
|
M.ft = { "rust" }
|
|
|
|
M.init = function()
|
|
local extension_path = os.getenv("XDG_DATA_HOME") .. "/nvim/mason/packages/codelldb/extension/"
|
|
local codelldb_path = extension_path .. "apapter/codelldb"
|
|
local liblldb_path = extension_path .. "lldb/lib/liblldb.so"
|
|
local adapter = require("rustaceanvim.config").get_codelldb_adapter(codelldb_path, liblldb_path)
|
|
vim.g.rustaceanvim = function()
|
|
return {
|
|
dap = {
|
|
adapter = adapter,
|
|
},
|
|
server = {
|
|
on_attach = require("funcs").lsp_on_attach,
|
|
},
|
|
}
|
|
end
|
|
end
|
|
|
|
return M
|