Skip to content

Commit

Permalink
update trouble keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChung committed Jul 7, 2024
1 parent ca99cf5 commit 9fc0289
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,5 @@ vim.keymap.set('n', '<leader>th', builtin.help_tags, {})
-- Set folke/todo-comments.nvim toggle keybinding
vim.api.nvim_set_keymap("n", "<leader>td", "<Cmd>TodoTelescope<CR>", { noremap = true, silent = true })

-- Set folke/trouble.nvim toggle keybinding
vim.api.nvim_set_keymap("n", "<leader>tt", "<Cmd>TroubleToggle<CR>", { noremap = true, silent = true })

-- Set williamboman/mason.nvim open/close toggle
vim.api.nvim_set_keymap("n", "<leader>ma", "<Cmd>Mason<CR>", { noremap = true, silent = true })
12 changes: 12 additions & 0 deletions lua/plugins/trouble.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
return {
{
"folke/trouble.nvim",
keys = {
{
"<leader>tt",
"<cmd>Trouble diagnostics toggle<cr>",
desc = "Diagnostics (Trouble)",
}
}
}
}

0 comments on commit 9fc0289

Please sign in to comment.