18 lines
389 B
Lua
18 lines
389 B
Lua
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({
|
|
-- your neotest config here
|
|
adapters = {
|
|
require("neotest-go"),
|
|
},
|
|
})
|