From c67973de2dc79918865d98c758d1f61cf9f7e01b Mon Sep 17 00:00:00 2001 From: Jimmy Bates Date: Sun, 21 Apr 2024 17:05:03 -0700 Subject: [PATCH] added alt key for trouble --- lua/custom/plugins/trouble.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/custom/plugins/trouble.lua b/lua/custom/plugins/trouble.lua index 2196ba4f..f1b63c97 100644 --- a/lua/custom/plugins/trouble.lua +++ b/lua/custom/plugins/trouble.lua @@ -4,6 +4,10 @@ return { init = function() local opts = { noremap = true, silent = true } -- Lua + vim.keymap.set('n', '', function() + require('trouble').toggle() + end, opts) + vim.keymap.set('n', 'Xx', function() require('trouble').toggle() end, vim.tbl_extend('force', opts, { desc = '[X] Toggle trouble' }))