fix: rust dap adapter installation

This commit is contained in:
Andreas Gerlach 2023-07-23 10:27:28 +02:00
parent 142e6bec20
commit 5c35604ebf

View file

@ -31,13 +31,17 @@ return {
-- Ensure Rust debugger is installed -- Ensure Rust debugger is installed
{ {
"williamboman/mason.nvim", "mfussenegger/nvim-dap",
optional = true, optional = true,
opts = function(_, opts) dependencies = {
if type(opts.ensure_installed) == "table" then {
vim.list_extend(opts.ensure_installed, { "codelldb" }) "williamboman/mason.nvim",
end opts = function(_, opts)
end, opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "codelldb" })
end,
},
},
}, },
{ {