summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/settings/jsonls.fnl
blob: 55c61151fa22cba5ecbd712c11d35eb8fbc7c3e2 (plain)
1
2
3
4
5
6
7
8
9
10
;; Json schema store catalog language server.
(module config.lsp.settings.jsonls {autoload {util config.util}})

(let [schemastore (util.prequire :schemastore)]
  {:init_options {:providerFormatter false}
   :settings {:json {:schemas (schemastore.json.schemas)}}
   :setup {:commands {:Format [(fn []
                                 (vim.lsp.buf.range_formatting [] [0 0]
                                                               [(vim.fn.line "$"
                                                                             0)]))]}}})