From 7bf883de6312465ef32a8a03d27d834601d08d36 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Thu, 22 Aug 2024 13:06:56 -0400 Subject: change trouble quick fix behaviour --- nvim/lua/plugins/diagnostics.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'nvim/lua/plugins/diagnostics.lua') diff --git a/nvim/lua/plugins/diagnostics.lua b/nvim/lua/plugins/diagnostics.lua index 7865470..9406298 100644 --- a/nvim/lua/plugins/diagnostics.lua +++ b/nvim/lua/plugins/diagnostics.lua @@ -67,7 +67,15 @@ return { }, { "dq", - "Trouble qflist toggle", + function() + require("trouble").toggle({ + mode = "qflist", + auto_close = true, + auto_preview = false, + focus = true, + follow = false, + }) + end, desc = "Quickfix List (Trouble)", }, }, -- cgit v1.2.3