update rustacean plugin

This commit is contained in:
Andreas Gerlach 2024-02-04 17:12:58 +01:00
parent 0333a7e335
commit fdf593f6c0
No known key found for this signature in database
GPG key ID: 4DE630969786BD19

View file

@ -27,9 +27,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "ron", "rust", "toml" }) vim.list_extend(opts.ensure_installed, { "ron", "rust", "toml" })
end
end, end,
}, },
@ -38,15 +37,14 @@ return {
"williamboman/mason.nvim", "williamboman/mason.nvim",
optional = true, optional = true,
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "codelldb" }) vim.list_extend(opts.ensure_installed, { "codelldb" })
end
end, end,
}, },
{ {
"mrcjkb/rustaceanvim", "mrcjkb/rustaceanvim",
version = "^3", -- Recommended version = '^4', -- Recommended
ft = { "rust" }, ft = { "rust" },
opts = { opts = {
server = { server = {
@ -124,14 +122,12 @@ return {
{ {
"nvim-neotest/neotest", "nvim-neotest/neotest",
optional = true, optional = true,
dependencies = { opts = function(_, opts)
"rouge8/neotest-rust", opts.adapters = opts.adapters or {}
}, vim.list_extend(opts.adapters, {
opts = { require('rustaceanvim.neotest'),
adapters = { })
["neotest-rust"] = {}, end
},
},
}, },
} }