feat(nvim): use rustaceanvim test adapter for neotest

This commit is contained in:
Sergio Laín 2024-02-05 13:48:00 +01:00
parent b275e68dea
commit 5f43ff7c2a
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 21 additions and 1 deletions

View file

@ -845,6 +845,12 @@
"type": "command",
"command": "workbench.view.extensions"
},
{
"key": "g",
"name": "Grep",
"type": "command",
"command": "workbench.action.findInFiles"
},
{
"key": "c",
"name": "Commands",

View file

@ -6,7 +6,7 @@ return {
},
{
"mrcjkb/rustaceanvim",
version = "^3", -- Recommended
version = "^4", -- Recommended
ft = { "rust" },
opts = {
server = {
@ -49,6 +49,20 @@ return {
vim.g.rustaceanvim = vim.tbl_deep_extend("force", {}, opts or {})
end,
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"rouge8/neotest-rust",
enabled = false,
},
opts = function(_, opts)
opts.adapters = opts.adapters or {}
vim.list_extend(opts.adapters, {
require("rustaceanvim.neotest"),
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {