diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2023-07-10 14:05:55 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2023-07-19 11:52:52 -0400 |
| commit | 0613f29757b688b55b74027063d35dcebc23b10a (patch) | |
| tree | 65223cfb311adcdadd9d673095c153cba99236cf /.config/nvim/lua/plugins/neotest.lua | |
| parent | 9b4332d25594ff14a4b3038acc4a482325207759 (diff) | |
nvim: stuff
Diffstat (limited to '.config/nvim/lua/plugins/neotest.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/neotest.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/neotest.lua b/.config/nvim/lua/plugins/neotest.lua index 74817a5..5e22696 100644 --- a/.config/nvim/lua/plugins/neotest.lua +++ b/.config/nvim/lua/plugins/neotest.lua @@ -7,6 +7,8 @@ return { "antoinemadec/FixCursorHold.nvim", "nvim-neotest/neotest-python", + "rouge8/neotest-rust", + "nvim-neotest/neotest-go", }, keys = { { "<leader>tt", function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run buffer" }, @@ -23,9 +25,20 @@ return { { "<leader>tws", function() require("neotest").watch.stop() end, desc = "Stop watching" }, }, config = function() + local neotest_ns = vim.api.nvim_create_namespace("neotest") + vim.diagnostic.config({ + virtual_text = { + format = function(diagnostic) + return diagnostic.message:gsub("\n", " "):gsub("\t", " "):gsub("%s+", " "):gsub("^%s+", "") + end, + }, + }, neotest_ns) + require("neotest").setup({ adapters = { require("neotest-python"), + require("neotest-rust"), + require("neotest-go"), }, }) end, |
