From 55c38a8cf9065da6c82903b1da5a129087584440 Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Thu, 6 Jun 2024 20:10:53 -0700 Subject: [PATCH] fix: trouble breaking changes v3 --- lua/plugins/editor.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 3e8f243..9fc1285 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -66,9 +66,15 @@ return { { "folke/trouble.nvim", dependencies = { "nvim-tree/nvim-web-devicons" }, - config = function() - vim.keymap.set("n", "tt", ":TroubleToggle", { desc = "Toggle Trouble" }) - end, + opts = {}, + cmd = "Trouble", + keys = { + { + "tt", + "Trouble diagnostics toggle", + desc = "Toggle Trouble", + }, + }, }, { "folke/todo-comments.nvim",