From 96fc0c8d61a46fdeba9f7ee0523241e813e8ae6e Mon Sep 17 00:00:00 2001 From: Lorran David Date: Sun, 19 Jan 2025 16:46:18 -0300 Subject: [PATCH] add trouble & remove canary branch for copilot chat --- lua/custom/plugins/copilot-chat.lua | 1 - lua/custom/plugins/trouble.lua | 37 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/trouble.lua diff --git a/lua/custom/plugins/copilot-chat.lua b/lua/custom/plugins/copilot-chat.lua index 4d57e35f..22a17ca0 100644 --- a/lua/custom/plugins/copilot-chat.lua +++ b/lua/custom/plugins/copilot-chat.lua @@ -20,7 +20,6 @@ local prompts = { return { { "CopilotC-Nvim/CopilotChat.nvim", - branch = "canary", event = "VeryLazy", opts = { show_help = "no", diff --git a/lua/custom/plugins/trouble.lua b/lua/custom/plugins/trouble.lua new file mode 100644 index 00000000..3741f30a --- /dev/null +++ b/lua/custom/plugins/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)", + }, + { + "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)", + }, + }, +}