✨ feat(nvim): use rustaceanvim test adapter for neotest
This commit is contained in:
parent
b275e68dea
commit
5f43ff7c2a
2 changed files with 21 additions and 1 deletions
|
@ -845,6 +845,12 @@
|
|||
"type": "command",
|
||||
"command": "workbench.view.extensions"
|
||||
},
|
||||
{
|
||||
"key": "g",
|
||||
"name": "Grep",
|
||||
"type": "command",
|
||||
"command": "workbench.action.findInFiles"
|
||||
},
|
||||
{
|
||||
"key": "c",
|
||||
"name": "Commands",
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue