all repos

init.lua @ 8131b8e4ff95c3293f3c027bd209a03e1fc87f7e

my nvim config
1 files changed, 15 insertions(+), 0 deletions(-)
fix(neotest): now it works, always
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2024-01-11 03:56:23 +0200
Parent: ab3151a
M lua/plugins/neotest.lua

@@ -22,8 +22,23 @@ },

dependencies = { "nvim-neotest/neotest-go", "nvim-neotest/neotest-plenary", + "nvim-treesitter", }, config = function() + local neotest_ns = vim.api.nvim_create_namespace "neotest" + vim.diagnostic.config({ + virtual_text = { + format = function(diagnostic) + local message = diagnostic.message + :gsub("\n", " ") + :gsub("\t", " ") + :gsub("%s+", " ") + :gsub("^%s+", "") + return message + end, + }, + }, neotest_ns) + require("neotest").setup { adapters = { require "neotest-plenary",