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:
14
.config/nvim/lua/plugins/neotest.lua
Normal file
14
.config/nvim/lua/plugins/neotest.lua
Normal 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"),
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user