From 504e01f571dd30d83ad2e022c60701b9169e63d9 Mon Sep 17 00:00:00 2001 From: zspher <66728045+zspher@users.noreply.github.com> Date: Sat, 8 Jun 2024 21:31:18 +0800 Subject: [PATCH] fix(lang): neotest not loading rust tests --- lua/lazyvim/plugins/extras/lang/rust.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/rust.lua b/lua/lazyvim/plugins/extras/lang/rust.lua index e5a9acd2..92ac3caf 100644 --- a/lua/lazyvim/plugins/extras/lang/rust.lua +++ b/lua/lazyvim/plugins/extras/lang/rust.lua @@ -119,12 +119,10 @@ return { { "nvim-neotest/neotest", - optional = true, - opts = function(_, opts) - opts.adapters = opts.adapters or {} - vim.list_extend(opts.adapters, { - require("rustaceanvim.neotest"), - }) - end, + opts = { + adapters = { + ["rustaceanvim.neotest"] = {}, + }, + }, }, }