diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-05-20 00:08:22 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-05-20 00:08:22 +0200 |
commit | 7df25e8ce3e98e4cb56c5eb47c6ada1f414e083c (patch) | |
tree | 4a2c593af7e1116ea1d42dd95f50d0b1f0ecd856 /fnl/plugins/editor/trouble.fnl | |
parent | b025d2ca64e9c3b4d65635883eead9bac625921f (diff) |
Add icons file
Diffstat (limited to 'fnl/plugins/editor/trouble.fnl')
-rw-r--r-- | fnl/plugins/editor/trouble.fnl | 17 |
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} |