mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 01:38:54 +02:00
feat(noetest): open trouble instead of quickfix on errors when available
This commit is contained in:
parent
30824369c2
commit
2c89770504
1 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,15 @@ return {
|
||||||
-- args = { "-tags=integration" },
|
-- 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)
|
config = function(_, opts)
|
||||||
local neotest_ns = vim.api.nvim_create_namespace("neotest")
|
local neotest_ns = vim.api.nvim_create_namespace("neotest")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue