From 75aeb8c5f5becffbe4930e15fa8271d2046363de Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Tue, 6 May 2025 12:21:15 +0800 Subject: [PATCH] feat nvim: trouble.nvim --- .../exact_plugins/exact_components/debug.lua | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 dot_config/nvim/exact_lua/exact_plugins/exact_components/debug.lua diff --git a/dot_config/nvim/exact_lua/exact_plugins/exact_components/debug.lua b/dot_config/nvim/exact_lua/exact_plugins/exact_components/debug.lua new file mode 100644 index 0000000..5018ef2 --- /dev/null +++ b/dot_config/nvim/exact_lua/exact_plugins/exact_components/debug.lua @@ -0,0 +1,39 @@ +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)", + }, + { + "cs", + "Trouble symbols toggle focus=false", + desc = "Symbols (Trouble)", + }, + { + "cl", + "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)", + }, + }, + }, +}