You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

  1. return {
  2. "folke/trouble.nvim",
  3. event = { "BufReadPre", "BufNewFile" },
  4. opts = {},
  5. cmd = "Trouble",
  6. keys = {
  7. {
  8. "<leader>xx",
  9. "<cmd>Trouble diagnostics toggle<cr>",
  10. desc = "Diagnostics (Trouble)",
  11. },
  12. {
  13. "<leader>xX",
  14. "<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
  15. desc = "Buffer Diagnostics (Trouble)",
  16. },
  17. {
  18. "<leader>xj",
  19. "<cmd>Trouble diagnostics next<cr>",
  20. desc = "Diagnostics Next (Trouble)",
  21. },
  22. {
  23. "<leader>xk",
  24. "<cmd>Trouble diagnostics prev<cr>",
  25. desc = "Diagnostics Previous (Trouble)",
  26. },
  27. {
  28. "<leader>cs",
  29. "<cmd>Trouble symbols toggle focus=false<cr>",
  30. desc = "Symbols (Trouble)",
  31. },
  32. {
  33. "<leader>cl",
  34. "<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
  35. desc = "LSP Definitions / references / ... (Trouble)",
  36. },
  37. {
  38. "<leader>xL",
  39. "<cmd>Trouble loclist toggle<cr>",
  40. desc = "Location List (Trouble)",
  41. },
  42. {
  43. "<leader>xQ",
  44. "<cmd>Trouble qflist toggle<cr>",
  45. desc = "Quickfix List (Trouble)",
  46. },
  47. },
  48. }