summaryrefslogtreecommitdiff
path: root/fnl/plugins/lsp/diagnostics.fnl
blob: b4aefa661dc569e183f2f79eb84d414dd5ef7202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;; Handlers for the requests and responses from and to the lsp server.

(local icons (require :settings.icons))

(local signs {vim.diagnostic.severity.ERROR (. icons :error)
              vim.diagnostic.severity.WARN (. icons :warn)
              vim.diagnostic.severity.INFO (. icons :info)
              vim.diagnostic.severity.HINT (. icons :hint)})

(local config {:virtual_text false
               :signs {:text signs}
               :update_in_insert false
               :underline true
               :severity_sort true
               :float {:focusable false
                       :style :minimal
                       :border :single
                       :source :always
                       :header ""
                       :prefix ""}})

(λ setup []
  (vim.diagnostic.config config))

{: setup}