Skip to content

Commit

Permalink
feat(noetest): open trouble instead of quickfix on errors when available
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 27, 2023
1 parent 3082436 commit 2c89770
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/lazyvim/plugins/extras/test/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ return {
-- args = { "-tags=integration" },
-- },
-- },
quickfix = {
open = function()
if require("lazyvim.util").has("trouble.nvim") then
vim.cmd("Trouble quickfix")
else
vim.cmd("copen")
end
end,
},
},
config = function(_, opts)
local neotest_ns = vim.api.nvim_create_namespace("neotest")
Expand Down

0 comments on commit 2c89770

Please sign in to comment.