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.fnl17
1 files changed, 11 insertions, 6 deletions
diff --git a/fnl/plugins/editor/trouble.fnl b/fnl/plugins/editor/trouble.fnl
index 5c989de..7136787 100644
--- a/fnl/plugins/editor/trouble.fnl
+++ b/fnl/plugins/editor/trouble.fnl
@@ -1,5 +1,7 @@
;; Pretty diagnostics.
+(local icons (require :plugins.icons))
+
(local opts {:position :bottom
;; position of the list can be: bottom, top, left, right
:height 10
@@ -69,15 +71,18 @@
: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 ""
- :warning ""
- :hint ""
- :information ""
- :other "﫠"}
+ :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
})
{1 :folke/trouble.nvim
- :keys [{1 :<leader>jt 2 :<cmd>TroubleToggle<cr> :desc :Trouble}]
+ :cmd [:Trouble :TroubleToggle]
+ :keys [{1 :<leader>jt
+ 2 "<cmd>TroubleToggle workspace_diagnostics<cr>"
+ :desc :Trouble}]
: opts}