More updates and cleanup to nvim config

This commit is contained in:
Fabian Becker
2025-09-10 11:16:00 +02:00
parent c30a121b99
commit b8c42f92c7
12 changed files with 95 additions and 116 deletions

View File

@@ -4,6 +4,17 @@ end
local nnoremap = require('halfdan.keymap').nnoremap
local neotest = require('neotest')
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)
neotest.setup({
log_level = vim.log.levels.DEBUG,
@@ -14,6 +25,7 @@ neotest.setup({
}),
require("neotest-rust"),
-- require("neotest-vim-test")({ allow_file_types = { "haskell"} }),
require("neotest-golang")
},
})