summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor/trouble.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/editor/trouble.fnl')
-rw-r--r--fnl/plugins/editor/trouble.fnl11
1 files changed, 5 insertions, 6 deletions
diff --git a/fnl/plugins/editor/trouble.fnl b/fnl/plugins/editor/trouble.fnl
index f0996fd..b9a4e3c 100644
--- a/fnl/plugins/editor/trouble.fnl
+++ b/fnl/plugins/editor/trouble.fnl
@@ -1,5 +1,9 @@
;; Pretty diagnostics.
+(local keys [{1 :<leader>jt
+ 2 "<cmd>TroubleToggle workspace_diagnostics<cr>"
+ :desc :Trouble}])
+
(local opts {:position :bottom
; position of the list can be: bottom, top, left, right
:height 10
@@ -70,9 +74,4 @@
;; for the given modes, automatically jump if there is only a single result
:use_diagnostic_signs true})
-{1 :folke/trouble.nvim
- :cmd [:TroubleToggle :Trouble]
- : opts
- :keys [{1 :<leader>jt
- 2 "<cmd>TroubleToggle workspace_diagnostics<cr>"
- :desc :Trouble}]}
+{1 :folke/trouble.nvim :cmd [:TroubleToggle :Trouble] : opts : keys}