1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-03 00:49:26 +00:00

[neovim] Add neotest plugin

This commit is contained in:
2024-02-03 16:22:54 +01:00
parent 1499944349
commit daef32ffe8
7 changed files with 61 additions and 21 deletions

View File

@ -0,0 +1,14 @@
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"),
},
})