1 files changed,
15 insertions(+),
0 deletions(-)
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",