mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
update rustacean plugin
This commit is contained in:
parent
0333a7e335
commit
fdf593f6c0
1 changed files with 11 additions and 15 deletions
|
|
@ -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
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue