summaryrefslogtreecommitdiff
path: root/fnl/plugins/lsp
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-05-20 00:08:22 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-05-20 00:08:22 +0200
commit7df25e8ce3e98e4cb56c5eb47c6ada1f414e083c (patch)
tree4a2c593af7e1116ea1d42dd95f50d0b1f0ecd856 /fnl/plugins/lsp
parentb025d2ca64e9c3b4d65635883eead9bac625921f (diff)
Add icons file
Diffstat (limited to 'fnl/plugins/lsp')
-rw-r--r--fnl/plugins/lsp/diagnostics.fnl10
-rw-r--r--fnl/plugins/lsp/mason.fnl8
2 files changed, 11 insertions, 7 deletions
diff --git a/fnl/plugins/lsp/diagnostics.fnl b/fnl/plugins/lsp/diagnostics.fnl
index e9eca47..8676924 100644
--- a/fnl/plugins/lsp/diagnostics.fnl
+++ b/fnl/plugins/lsp/diagnostics.fnl
@@ -1,9 +1,11 @@
;; Handlers for the requests and responses from and to the lsp server.
-(local signs [{:name :DiagnosticSignError :text ""}
- {:name :DiagnosticSignWarn :text ""}
- {:name :DiagnosticSignHint :text ""}
- {:name :DiagnosticSignInfo :text ""}])
+(local icons (require :plugins.icons))
+
+(local signs [{:name :DiagnosticSignError :text (. icons :error)}
+ {:name :DiagnosticSignWarn :text (. icons :warn)}
+ {:name :DiagnosticSignHint :text (. icons :hint)}
+ {:name :DiagnosticSignInfo :text (. icons :info)}])
(fn apply-signs []
(each [_ sign (ipairs signs)]
diff --git a/fnl/plugins/lsp/mason.fnl b/fnl/plugins/lsp/mason.fnl
index bc63e23..f94f328 100644
--- a/fnl/plugins/lsp/mason.fnl
+++ b/fnl/plugins/lsp/mason.fnl
@@ -1,9 +1,11 @@
;; Mason manages external tooling, e.g. lsp, formatters, and linters.
+(local icons (require :plugins.icons))
+
(local opts {:ui {:border :single
- :icons {:package_installed " "
- :package_pending " "
- :package_uninstalled " "}}
+ :icons {:package_installed (.. (. icons :checkmark) " ")
+ :package_pending (.. (. icons :right-arrow) " ")
+ :package_uninstalled (.. (. icons :close) " ")}}
:max_concurrent_installers 10})
{1 :williamboman/mason.nvim