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.

47 lines
989 B

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