From 0567b37f61d5ad997793b950c38a6c8f73de3b9b Mon Sep 17 00:00:00 2001 From: Ian <66728045+zspher@users.noreply.github.com> Date: Sun, 9 Jun 2024 14:37:08 +0800 Subject: [PATCH] fix(lang): neotest not loading rust tests (#3544) fixes https://github.com/LazyVim/LazyVim/issues/3543 --- 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"] = {}, + }, + }, }, }