summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor/trouble.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-06-24 21:46:12 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-06-24 21:46:12 +0200
commit2c6394fe7879dcba6dbb77a60eb0f4e16e6fecee (patch)
tree3dd824a4576781fcefbf96aca71eefa9e6571f20 /fnl/plugins/editor/trouble.fnl
parenteb11915ecc81499b58affc4111b8fce9399cd595 (diff)
Update gitsigns, trouble, and lock file
Diffstat (limited to 'fnl/plugins/editor/trouble.fnl')
-rw-r--r--fnl/plugins/editor/trouble.fnl20
1 files changed, 5 insertions, 15 deletions
diff --git a/fnl/plugins/editor/trouble.fnl b/fnl/plugins/editor/trouble.fnl
index 839bba4..f0996fd 100644
--- a/fnl/plugins/editor/trouble.fnl
+++ b/fnl/plugins/editor/trouble.fnl
@@ -1,9 +1,7 @@
;; Pretty diagnostics.
-(local icons (require :plugins.icons))
-
(local opts {:position :bottom
- ;; position of the list can be: bottom, top, left, right
+ ; position of the list can be: bottom, top, left, right
:height 10
;; height of the trouble list when position is top or bottom
:width 50
@@ -70,19 +68,11 @@
;; automatically fold a file trouble list at creation
:auto_jump [:lsp_definitions]
;; for the given modes, automatically jump if there is only a single result
- :signs {;; icons / text used for a diagnostic
- :error (. icons :error)
- :warning (. icons :warn)
- :hint (. icons :hint)
- :information (. icons :info)
- :other (. icons :other)}
- :use_diagnostic_signs false
- ;; enabling this will use the signs defined in your lsp client
- })
+ :use_diagnostic_signs true})
{1 :folke/trouble.nvim
- ; :cmd [:Trouble :TroubleToggle]
+ :cmd [:TroubleToggle :Trouble]
+ : opts
:keys [{1 :<leader>jt
2 "<cmd>TroubleToggle workspace_diagnostics<cr>"
- :desc :Trouble}]
- : opts}
+ :desc :Trouble}]}