1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-09-20 07:12:39 +00:00
dotfiles/.config/nvim/lua/plugins/neotest.lua

15 lines
355 B
Lua
Raw Normal View History

2024-02-03 15:22:54 +00:00
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-go"),
},
})