From 7df25e8ce3e98e4cb56c5eb47c6ada1f414e083c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 20 May 2023 00:08:22 +0200 Subject: Add icons file --- fnl/plugins/editor/trouble.fnl | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'fnl/plugins/editor/trouble.fnl') 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 :jt 2 :TroubleToggle :desc :Trouble}] + :cmd [:Trouble :TroubleToggle] + :keys [{1 :jt + 2 "TroubleToggle workspace_diagnostics" + :desc :Trouble}] : opts} -- cgit v1.2.3-70-g09d2