diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-07 00:44:47 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-07 00:44:47 +0100 |
commit | c84b370c658da0364d435fbd05054d025c2a1ca1 (patch) | |
tree | 3d865cddc0a15e76c9f2dbe3ef80bdd3972b751c | |
parent | 82feeb86eec6d1713d3f64ce618acc755f2499a1 (diff) |
Revert "Remove diagnostics icons"
This reverts commit 737da068980d559f89aa90060ba71235e40e40a3.
-rw-r--r-- | fnl/config/lsp/diagnostics.fnl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fnl/config/lsp/diagnostics.fnl b/fnl/config/lsp/diagnostics.fnl index a687870..094685f 100644 --- a/fnl/config/lsp/diagnostics.fnl +++ b/fnl/config/lsp/diagnostics.fnl @@ -1,6 +1,11 @@ ;; Handlers for the requests and responses from and to the lsp server. (module config.lsp.handlers {autoload {util config.util nvim aniseed.nvim}}) +(def- signs [{:name :DiagnosticSignError :text ""} + {:name :DiagnosticSignWarn :text ""} + {:name :DiagnosticSignHint :text ""} + {:name :DiagnosticSignInfo :text ""}]) + (defn- apply-signs [] (each [_ sign (ipairs signs)] (vim.fn.sign_define sign.name {:texthl sign.name @@ -8,6 +13,7 @@ :numhl ""}))) (def- config {:virtual_text false + :signs {:active signs} :update_in_insert false :underline true :severity_sort true @@ -19,6 +25,7 @@ :prefix ""}}) (do + (apply-signs) (vim.diagnostic.config config) (set vim.lsp.handlers.textDocument/hover (vim.lsp.with {:border :rounded :width 60})) |