✨ 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",
|
"type": "command",
|
||||||
"command": "workbench.view.extensions"
|
"command": "workbench.view.extensions"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"key": "g",
|
||||||
|
"name": "Grep",
|
||||||
|
"type": "command",
|
||||||
|
"command": "workbench.action.findInFiles"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"key": "c",
|
"key": "c",
|
||||||
"name": "Commands",
|
"name": "Commands",
|
||||||
|
|
|
@ -6,7 +6,7 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mrcjkb/rustaceanvim",
|
"mrcjkb/rustaceanvim",
|
||||||
version = "^3", -- Recommended
|
version = "^4", -- Recommended
|
||||||
ft = { "rust" },
|
ft = { "rust" },
|
||||||
opts = {
|
opts = {
|
||||||
server = {
|
server = {
|
||||||
|
@ -49,6 +49,20 @@ return {
|
||||||
vim.g.rustaceanvim = vim.tbl_deep_extend("force", {}, opts or {})
|
vim.g.rustaceanvim = vim.tbl_deep_extend("force", {}, opts or {})
|
||||||
end,
|
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",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue