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

(let [schemastore (util.load-plugin :schemastore)]
  (schemastore.setup {: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)]))]}}}))