From 7d90560964088ae2b1ccd9b76d26f8577fa92819 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 24 Mar 2025 20:36:22 +0100 Subject: [PATCH] [Testing] Add trouble --- nvim/lua/plugins/testing/trouble.lua | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 nvim/lua/plugins/testing/trouble.lua diff --git a/nvim/lua/plugins/testing/trouble.lua b/nvim/lua/plugins/testing/trouble.lua new file mode 100755 index 0000000..c5e88ab --- /dev/null +++ b/nvim/lua/plugins/testing/trouble.lua @@ -0,0 +1,37 @@ +return { + "folke/trouble.nvim", + opts = {}, -- for default options, refer to the configuration section for custom setup. + cmd = "Trouble", + keys = { + { + "xx", + "Trouble diagnostics toggle", + desc = "Diagnostics (Trouble)", + }, + { + "xX", + "Trouble diagnostics toggle filter.buf=0", + desc = "Buffer Diagnostics (Trouble)", + }, + { + "xs", + "Trouble symbols toggle focus=false", + desc = "Symbols (Trouble)", + }, + { + "xl", + "Trouble lsp toggle focus=false win.position=right", + desc = "LSP Definitions / references / ... (Trouble)", + }, + { + "xL", + "Trouble loclist toggle", + desc = "Location List (Trouble)", + }, + { + "xQ", + "Trouble qflist toggle", + desc = "Quickfix List (Trouble)", + }, + }, +}